diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2014-08-16 18:47:15 +0200 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2014-09-13 18:38:29 +0200 |
commit | 3010279f0fc36f0388872203e63ca49912f648fd (patch) | |
tree | 11275c12189d56471b5342de7f84cfa8e31e2f1e /arch/x86/include/asm/irq_work.h | |
parent | 76a33061b9323b7fdb220ae5fa116c10833ec22e (diff) | |
download | op-kernel-dev-3010279f0fc36f0388872203e63ca49912f648fd.zip op-kernel-dev-3010279f0fc36f0388872203e63ca49912f648fd.tar.gz |
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>
Diffstat (limited to 'arch/x86/include/asm/irq_work.h')
-rw-r--r-- | arch/x86/include/asm/irq_work.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/include/asm/irq_work.h b/arch/x86/include/asm/irq_work.h new file mode 100644 index 0000000..78162f8 --- /dev/null +++ b/arch/x86/include/asm/irq_work.h @@ -0,0 +1,11 @@ +#ifndef _ASM_IRQ_WORK_H +#define _ASM_IRQ_WORK_H + +#include <asm/processor.h> + +static inline bool arch_irq_work_has_interrupt(void) +{ + return cpu_has_apic; +} + +#endif /* _ASM_IRQ_WORK_H */ |