aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/i386/kernel/cpu/common.c4
-rw-r--r--arch/x86_64/kernel/setup.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/i386/kernel/cpu/common.c b/arch/i386/kernel/cpu/common.c
index 74145a33cb0f..35a67dab4a94 100644
--- a/arch/i386/kernel/cpu/common.c
+++ b/arch/i386/kernel/cpu/common.c
@@ -233,10 +233,10 @@ static void __init early_cpu_detect(void)
233 cpuid(0x00000001, &tfms, &misc, &junk, &cap0); 233 cpuid(0x00000001, &tfms, &misc, &junk, &cap0);
234 c->x86 = (tfms >> 8) & 15; 234 c->x86 = (tfms >> 8) & 15;
235 c->x86_model = (tfms >> 4) & 15; 235 c->x86_model = (tfms >> 4) & 15;
236 if (c->x86 == 0xf) { 236 if (c->x86 == 0xf)
237 c->x86 += (tfms >> 20) & 0xff; 237 c->x86 += (tfms >> 20) & 0xff;
238 if (c->x86 >= 0x6)
238 c->x86_model += ((tfms >> 16) & 0xF) << 4; 239 c->x86_model += ((tfms >> 16) & 0xF) << 4;
239 }
240 c->x86_mask = tfms & 15; 240 c->x86_mask = tfms & 15;
241 if (cap0 & (1<<19)) 241 if (cap0 & (1<<19))
242 c->x86_cache_alignment = ((misc >> 8) & 0xff) * 8; 242 c->x86_cache_alignment = ((misc >> 8) & 0xff) * 8;
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index da0bc3e7bdf5..f27731ac95c5 100644
--- a/arch/x86_64/kernel/setup.c
+++ b/arch/x86_64/kernel/setup.c
@@ -1060,10 +1060,10 @@ void __cpuinit early_identify_cpu(struct cpuinfo_x86 *c)
1060 c->x86 = (tfms >> 8) & 0xf; 1060 c->x86 = (tfms >> 8) & 0xf;
1061 c->x86_model = (tfms >> 4) & 0xf; 1061 c->x86_model = (tfms >> 4) & 0xf;
1062 c->x86_mask = tfms & 0xf; 1062 c->x86_mask = tfms & 0xf;
1063 if (c->x86 == 0xf) { 1063 if (c->x86 == 0xf)
1064 c->x86 += (tfms >> 20) & 0xff; 1064 c->x86 += (tfms >> 20) & 0xff;
1065 if (c->x86 >= 0x6)
1065 c->x86_model += ((tfms >> 16) & 0xF) << 4; 1066 c->x86_model += ((tfms >> 16) & 0xF) << 4;
1066 }
1067 if (c->x86_capability[0] & (1<<19)) 1067 if (c->x86_capability[0] & (1<<19))
1068 c->x86_clflush_size = ((misc >> 8) & 0xff) * 8; 1068 c->x86_clflush_size = ((misc >> 8) & 0xff) * 8;
1069 } else { 1069 } else {