blob: 24a09f64392b5f989d326fb27319f359f884d15b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
diff -Nurp ../fglrx-orig/build_mod/firegl_public.c build_mod/firegl_public.c
--- ../fglrx-orig/build_mod/firegl_public.c 2003-07-11 11:42:06.000000000 +0000
+++ build_mod/firegl_public.c 2003-08-03 16:15:57.447117216 +0000
@@ -3050,33 +3050,6 @@ static int __init have_cpuid_p(void)
int __ke_amd_adv_spec_cache_feature(void)
{
- char vendor_id[16];
- int ident;
- int family, model;
-
- /* Must have CPUID */
- if(!have_cpuid_p())
- goto donthave;
- if(cpuid_eax(0)<1)
- goto donthave;
-
- /* Must be x86 architecture */
- cpuid(0, &ident,
- (int *)&vendor_id[0],
- (int *)&vendor_id[8],
- (int *)&vendor_id[4]);
-
- if (memcmp(vendor_id, "AuthenticAMD", 12))
- goto donthave;
-
- ident = cpuid_eax(1);
- family = (ident >> 8) & 0xf;
- model = (ident >> 4) & 0xf;
- if (((family == 6) && (model >= 6)) || (family == 15)) {
- return 1;
- }
-
-donthave:
return 0;
}
|