x86: Tell irq work about self IPI support
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 16 Aug 2014 16:47:15 +0000 (18:47 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sat, 13 Sep 2014 16:38:29 +0000 (18:38 +0200)
commit3010279f0fc36f0388872203e63ca49912f648fd
tree11275c12189d56471b5342de7f84cfa8e31e2f1e
parent76a33061b9323b7fdb220ae5fa116c10833ec22e
x86: Tell irq work about self IPI support

x86 supports irq work self-IPIs when local apic is available. This is
partly known on runtime so lets implement arch_irq_work_has_interrupt()
accordingly.

This should be safely called after setup_arch().

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
arch/x86/include/asm/Kbuild
arch/x86/include/asm/irq_work.h [new file with mode: 0644]
arch/x86/kernel/irq_work.c