Messages in this thread Patch in this message | | | From | Frederic Weisbecker <> | Subject | [RFC PATCH 3/8] x86: Implement arch_irq_work_has_ipi() | Date | Sat, 20 Oct 2012 12:22:42 -0400 |
| |
Most of the time, x86 can trigger self-IPIs. Tell irq work subsystem about it.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@kernel.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> --- arch/x86/include/asm/irq_work.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/x86/include/asm/irq_work.h b/arch/x86/include/asm/irq_work.h index dad8266..c7489cd 100644 --- a/arch/x86/include/asm/irq_work.h +++ b/arch/x86/include/asm/irq_work.h @@ -2,8 +2,12 @@ #define _ASM_X86_IRQ_WORK_H #ifdef CONFIG_X86_LOCAL_APIC +#include <asm/cpufeature.h> + extern void __arch_irq_work_raise(void); #define arch_irq_work_raise __arch_irq_work_raise + +#define arch_irq_work_has_ipi() (cpu_has_apic) #endif #include <asm-generic/irq_work.h> -- 1.7.5.4
| |