x86/init: Add intr_mode_init to x86_init_ops
X86 and XEN initialize interrupt delivery mode in different way. To avoid conditionals, add a new x86_init_ops function which defaults to the standard function and can be overridden by the early XEN platform code. [ tglx: Folded the XEN part which was a separate patch to preserve bisectability ] Signed-off-by: Dou Liyang <douly.fnst@cn.fujitsu.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: yinghai@kernel.org Cc: bhe@redhat.com Link: https://lkml.kernel.org/r/1505293975-26005-10-git-send-email-douly.fnst@cn.fujitsu.com
This commit is contained in:

committed by
Thomas Gleixner

parent
ca7c6076ba
commit
34fba3e6b1
@@ -2423,7 +2423,7 @@ void __init apic_bsp_setup(bool upmode)
|
||||
#ifdef CONFIG_UP_LATE_INIT
|
||||
void __init up_late_init(void)
|
||||
{
|
||||
apic_intr_mode_init();
|
||||
x86_init.irqs.intr_mode_init();
|
||||
|
||||
if (apic_intr_mode == APIC_PIC)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user