OSDN Git Service

x86/ioapic: Add proper checks to setp/enable_IO_APIC()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 15 Jan 2015 21:22:32 +0000 (21:22 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Jan 2015 14:10:55 +0000 (15:10 +0100)
commita46f5c89274245e42834dc976896444efd53ccdc
treef967fb640bcd6e40195b568f5c580f8131065775
parent8686608336e11276d72d020cb0b67bee70d9a5cd
x86/ioapic: Add proper checks to setp/enable_IO_APIC()

No point to have the same checks at every call site. Add them to the
functions, so they can be called unconditionally.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Borislav Petkov <bp@alien8.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Tony Luck <tony.luck@intel.com>
Link: http://lkml.kernel.org/r/20150115211703.490719938@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic/io_apic.c