mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 21:42:20 +07:00
3010279f0f
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>
12 lines
186 B
C
12 lines
186 B
C
#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 */
|