]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - arch/x86/xen/enlighten_pv.c
x86/init: Add intr_mode_init to x86_init_ops
authorDou Liyang <douly.fnst@cn.fujitsu.com>
Wed, 13 Sep 2017 09:12:52 +0000 (17:12 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 25 Sep 2017 13:03:17 +0000 (15:03 +0200)
commit34fba3e6b1e5d42c81fc00ede715e0cdd2ebfada
treefe5e16ba227722ff610e81f218ed3d8e830f3916
parentca7c6076baed396737e31e33b87a637d70e9fc5f
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
arch/x86/include/asm/x86_init.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/smpboot.c
arch/x86/kernel/x86_init.c
arch/x86/xen/enlighten_pv.c