diff options
author | Dave Jones <davej@redhat.com> | 2009-12-10 21:27:44 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2009-12-10 21:27:44 -0500 |
commit | 375d469eeb15fbcfd831f7b66a0715f42a91a451 (patch) | |
tree | d4cfee51c5ab11bd908d30b0de38c9afdef16723 /get_model_name.c | |
parent | a8af3758826f545b289a40ecefa627de1e5e9e90 (diff) |
Intel CPU topology reworking.
This steals lots of code from the kernel, and munges it to work with userspace.
In doing so, I renamed a bunch of x86info's struct cpudata members to match
the kernels struct cpu_data, just to make it easier to sync any future changes.
Diffstat (limited to 'get_model_name.c')
-rw-r--r-- | get_model_name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/get_model_name.c b/get_model_name.c index e74dd0d..f2db7ea 100644 --- a/get_model_name.c +++ b/get_model_name.c @@ -42,7 +42,7 @@ void get_model_name(struct cpudata *cpu) if (strstr(cp, "unknown") != NULL) { unsigned int vendor; cpuid(cpu->number, 0, NULL, &vendor, NULL, NULL); - if (vendor == 0x68747541 && cpu->maxi >= 1 && cpu->maxei >= 0x80000001) { /* AMD defined flags */ + if (vendor == 0x68747541 && cpu->cpuid_level >= 1 && cpu->maxei >= 0x80000001) { /* AMD defined flags */ unsigned int bid, ebid; cpuid(cpu->number, 0x00000001, NULL, &bid, NULL, NULL); bid &= 0xff; |