OSDN Git Service

x86/apic: Make disable x2apic work really
authorThomas Gleixner <tglx@linutronix.de>
Thu, 15 Jan 2015 21:22:16 +0000 (21:22 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Jan 2015 14:10:54 +0000 (15:10 +0100)
commit9aa16365275a272283acbda665634ca3dc8b46fe
tree18f9b207e9d2dd37775b3c872625e134d0bf62ab
parent2ca5b40479246087695d9e6343075b47ee6887ea
x86/apic: Make disable x2apic work really

If x2apic_preenabled is not enabled, then disable_x2apic() is not
called from various places which results in x2apic_disabled not being
set. So other code pathes can happily reenable the x2apic.

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/20150115211702.621431109@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic/apic.c