summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2011-04-29 03:00:07 -0400
committerDave Jones <davej@redhat.com>2011-04-29 03:00:07 -0400
commitff0de4d4a2ff915ea58d1e7c526dbb53ccb13e93 (patch)
tree7b41935a979d017e4cb066b5b8c2c631de7a308e
parentcf193b6206914970923bed69aafdade290824cc7 (diff)
family 0x10 and 0x11 use eax too, so hoist this out of the "if fam 0xf" case.
-rw-r--r--AMD/identify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/AMD/identify.c b/AMD/identify.c
index 413d404..f8da94a 100644
--- a/AMD/identify.c
+++ b/AMD/identify.c
@@ -369,8 +369,8 @@ void Identify_AMD(struct cpudata *cpu)
if (cpu->cpuid_level < 1)
return;
+ cpuid(cpu->number, 0x00000001, &eax, &ebx, &ecx, &edx);
if (cpu->family == 0xf) {
- cpuid(cpu->number, 0x00000001, &eax, &ebx, &ecx, &edx);
cpu->emodel = (eax >> 16) & 0xf;
cpu->efamily= (eax >> 20) & 0xff;
} else {