linux/arch/x86/kernel/apic
Dou Liyang 0114a8e877 x86/apic: Construct a selector for the interrupt delivery mode
There are quite some switches which are used to determine the final
interrupt delivery mode, as shown below:

1) Kconfig: CONFIG_X86_64; CONFIG_X86_LOCAL_APIC; CONFIG_x86_IO_APIC
2) Command line options: disable_apic; skip_ioapic_setup
3) CPU Capability: boot_cpu_has(X86_FEATURE_APIC)
4) MP table: smp_found_config
5) ACPI: acpi_lapic; acpi_ioapic; nr_ioapic

These switches are disordered and scattered and there are also some
dependencies between them. These make the code difficult to maintain and
read.

Construct a selector to unify them into a single function, then, Use this
selector to get an interrupt delivery mode directly.

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-2-git-send-email-douly.fnst@cn.fujitsu.com
2017-09-25 15:03:14 +02:00
..
apic_flat_64.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
apic_noop.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
apic_numachip.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
apic.c x86/apic: Construct a selector for the interrupt delivery mode 2017-09-25 15:03:14 +02:00
bigsmp_32.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
htirq.c x86/htirq: Create named domain 2017-06-22 18:21:09 +02:00
hw_nmi.c kernel/watchdog: split up config options 2017-07-12 16:26:02 -07:00
io_apic.c x86/ioapic: Print the IRTE's index field correctly when enabling INTR 2017-08-23 10:17:17 +02:00
ipi.c x86/kernel: Audit and remove any unnecessary uses of module.h 2016-07-14 15:06:41 +02:00
Makefile kernel: add kcov code coverage 2016-03-22 15:36:02 -07:00
msi.c x86/msi: Create named irq domains 2017-06-22 18:21:11 +02:00
probe_32.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
probe_64.c x86/apic: Remove duplicated include from probe_64.c 2016-07-19 16:02:31 +02:00
vector.c x86/irq: Get rid of the 'first_system_vector' indirection bogosity 2017-08-29 11:42:21 +02:00
x2apic_cluster.c x86/apic: Implement effective irq mask update 2017-06-22 18:21:23 +02:00
x2apic_phys.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
x2apic_uv_x.c x86/apic: Add irq_data argument to apic->cpu_mask_to_apicid() 2017-06-22 18:21:22 +02:00