summaryrefslogtreecommitdiff
path: root/arch/x86_64/kernel/setup.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2007-05-11 11:23:20 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-11 12:53:00 -0700
commit8bd994815987dda0947bd9afd887b1410713d4f7 (patch)
treeb453238c4f2a14b557db0568e6ada733e5310ecd /arch/x86_64/kernel/setup.c
parent547c5355d1b1167af39e315c82aa9ff1398596f4 (diff)
downloadlwn-8bd994815987dda0947bd9afd887b1410713d4f7.tar.gz
lwn-8bd994815987dda0947bd9afd887b1410713d4f7.zip
x86_64: Don't call mtrr_bp_init from identify_cpu
The code was ok, but triggered warnings for calling __init from __cpuinit. Instead call it from check_bugs instead. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86_64/kernel/setup.c')
-rw-r--r--arch/x86_64/kernel/setup.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86_64/kernel/setup.c b/arch/x86_64/kernel/setup.c
index db51577bda32..eb6524f3ac29 100644
--- a/arch/x86_64/kernel/setup.c
+++ b/arch/x86_64/kernel/setup.c
@@ -891,9 +891,7 @@ void __cpuinit identify_cpu(struct cpuinfo_x86 *c)
#ifdef CONFIG_X86_MCE
mcheck_init(c);
#endif
- if (c == &boot_cpu_data)
- mtrr_bp_init();
- else
+ if (c != &boot_cpu_data)
mtrr_ap_init();
#ifdef CONFIG_NUMA
numa_add_cpu(smp_processor_id());