diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-09-04 20:09:10 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-05 09:40:54 +0200 |
commit | 6627d2423067f2c6eedb422a59fba9270a3c5e36 (patch) | |
tree | 89c5e002b289a337902f5f5a413a18ba81403951 /arch/x86/kernel/cpu/common.c | |
parent | 5122c890ba969e6efeaba9ed45f5936e62d3c6d5 (diff) | |
download | op-kernel-dev-6627d2423067f2c6eedb422a59fba9270a3c5e36.zip op-kernel-dev-6627d2423067f2c6eedb422a59fba9270a3c5e36.tar.gz |
x86: cpu/common*.c, merge early_identify_cpu()
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r-- | arch/x86/kernel/cpu/common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index ffc2f5e..61a7074 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -490,7 +490,11 @@ static void __cpuinit get_cpu_cap(struct cpuinfo_x86 *c) */ static void __init early_identify_cpu(struct cpuinfo_x86 *c) { +#ifdef CONFIG_X86_64 + c->x86_clflush_size = 64; +#else c->x86_clflush_size = 32; +#endif c->x86_cache_alignment = c->x86_clflush_size; if (!have_cpuid_p()) |