summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/common.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2015-01-15 21:22:26 +0000
committerThomas Gleixner <tglx@linutronix.de>2015-01-22 15:10:55 +0100
commit659006bf3ae37a08706907ce1a36ddf57c9131d2 (patch)
tree750a08e8d94d010d0c2ef275d54574551913b4ad /arch/x86/kernel/cpu/common.c
parent44e25ff9e6912347a1a54c757fc75681d0dc42d0 (diff)
downloadop-kernel-dev-659006bf3ae37a08706907ce1a36ddf57c9131d2.zip
op-kernel-dev-659006bf3ae37a08706907ce1a36ddf57c9131d2.tar.gz
x86/x2apic: Split enable and setup function
enable_x2apic() is a convoluted unreadable mess because it is used for both enablement in early boot and for setup in cpu_init(). Split the code into x2apic_enable() for enablement and x2apic_setup() for setup of (secondary cpus). Make use of the new state tracking to simplify the logic. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Jiang Liu <jiang.liu@linux.intel.com> Cc: Joerg Roedel <joro@8bytes.org> Cc: Tony Luck <tony.luck@intel.com> Cc: Borislav Petkov <bp@alien8.de> Link: http://lkml.kernel.org/r/20150115211703.129287153@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r--arch/x86/kernel/cpu/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index c604965..cb56925 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -1332,7 +1332,7 @@ void cpu_init(void)
barrier();
x86_configure_nx();
- enable_x2apic();
+ x2apic_setup();
/*
* set up and load the per-CPU TSS
OpenPOWER on IntegriCloud