OSDN Git Service

x86/irq_work: Make it depend on APIC
authorThomas Gleixner <tglx@linutronix.de>
Mon, 28 Aug 2017 06:47:35 +0000 (08:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 29 Aug 2017 09:42:30 +0000 (11:42 +0200)
commita45525b5b47c10c0446eda21227792b39af233dc
tree96675f0341e2ac551ab6625def641fdb5c72e22b
parent0428e01a2f13a6b7dae8289fb10030dbea336dee
x86/irq_work: Make it depend on APIC

The irq work interrupt vector is only installed when CONFIG_X86_LOCAL_APIC is
enabled, but the interrupt handler is compiled in unconditionally.

Compile the cruft out when the APIC is disabled.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/20170828064957.691909010@linutronix.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/irq_work.h
arch/x86/kernel/irq_work.c