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 /identify.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 'identify.c')
-rw-r--r-- | identify.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. */ |