summaryrefslogtreecommitdiff
path: root/identify.c
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2009-12-10 21:27:44 -0500
committerDave Jones <davej@redhat.com>2009-12-10 21:27:44 -0500
commit375d469eeb15fbcfd831f7b66a0715f42a91a451 (patch)
treed4cfee51c5ab11bd908d30b0de38c9afdef16723 /identify.c
parenta8af3758826f545b289a40ecefa627de1e5e9e90 (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 'identify.c')
-rw-r--r--identify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/identify.c b/identify.c
index 1ebbaed..03a155a 100644
--- a/identify.c
+++ b/identify.c
@@ -14,8 +14,8 @@ void get_cpu_info_basics(struct cpudata *cpu)
cpuid(cpu->number, 0, &maxi, &vendor, NULL, NULL);
maxi &= 0xffff; /* The high-order word is non-zero on some Cyrix CPUs */
- cpu->maxi = maxi;
- if (cpu->maxi < 1)
+ cpu->cpuid_level = maxi;
+ if (maxi < 1)
return;
/* Everything that supports cpuid supports these. */