diff options
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index db28aa9e2f6..d608c9ebbfe 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c | |||
@@ -274,8 +274,10 @@ void __init cpu_detect(struct cpuinfo_x86 *c) | |||
274 | if (c->x86 >= 0x6) | 274 | if (c->x86 >= 0x6) |
275 | c->x86_model += ((tfms >> 16) & 0xF) << 4; | 275 | c->x86_model += ((tfms >> 16) & 0xF) << 4; |
276 | c->x86_mask = tfms & 15; | 276 | c->x86_mask = tfms & 15; |
277 | if (cap0 & (1<<19)) | 277 | if (cap0 & (1<<19)) { |
278 | c->x86_cache_alignment = ((misc >> 8) & 0xff) * 8; | 278 | c->x86_cache_alignment = ((misc >> 8) & 0xff) * 8; |
279 | c->x86_clflush_size = ((misc >> 8) & 0xff) * 8; | ||
280 | } | ||
279 | } | 281 | } |
280 | } | 282 | } |
281 | static void __cpuinit early_get_cap(struct cpuinfo_x86 *c) | 283 | static void __cpuinit early_get_cap(struct cpuinfo_x86 *c) |
@@ -317,6 +319,7 @@ static void __init early_cpu_detect(void) | |||
317 | struct cpuinfo_x86 *c = &boot_cpu_data; | 319 | struct cpuinfo_x86 *c = &boot_cpu_data; |
318 | 320 | ||
319 | c->x86_cache_alignment = 32; | 321 | c->x86_cache_alignment = 32; |
322 | c->x86_clflush_size = 32; | ||
320 | 323 | ||
321 | if (!have_cpuid_p()) | 324 | if (!have_cpuid_p()) |
322 | return; | 325 | return; |