x86/apic: Split out restore_boot_irq_mode() from disable_IO_APIC()
authorBaoquan He <bhe@redhat.com>
Wed, 14 Feb 2018 05:46:51 +0000 (13:46 +0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 17 Feb 2018 10:47:29 +0000 (11:47 +0100)
commitce279cdc04aafd5c41ae49f941ee2c3342e35e3e
tree259658c3b7228398c04541b50a330d39cefe4b3e
parentb753a2b79a5bbad35dfaf8d3dba964727c30654a
x86/apic: Split out restore_boot_irq_mode() from disable_IO_APIC()

This is a preparation patch. Split out the code which restores boot
irq mode from disable_IO_APIC() into the new restore_boot_irq_mode()
function.

No functional changes.

Signed-off-by: Baoquan He <bhe@redhat.com>
Reviewed-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: douly.fnst@cn.fujitsu.com
Cc: joro@8bytes.org
Cc: prarit@redhat.com
Cc: uobergfe@redhat.com
Link: http://lkml.kernel.org/r/20180214054656.3780-2-bhe@redhat.com
[ Build fix for !CONFIG_IO_APIC and rewrote the changelog. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/io_apic.h
arch/x86/kernel/apic/io_apic.c