mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
397 B
20 lines
397 B
/* SPDX-License-Identifier: GPL-2.0 */ |
|
#ifndef _ASM_IRQ_WORK_H |
|
#define _ASM_IRQ_WORK_H |
|
|
|
#include <asm/cpufeature.h> |
|
|
|
#ifdef CONFIG_X86_LOCAL_APIC |
|
static inline bool arch_irq_work_has_interrupt(void) |
|
{ |
|
return boot_cpu_has(X86_FEATURE_APIC); |
|
} |
|
extern void arch_irq_work_raise(void); |
|
#else |
|
static inline bool arch_irq_work_has_interrupt(void) |
|
{ |
|
return false; |
|
} |
|
#endif |
|
|
|
#endif /* _ASM_IRQ_WORK_H */
|
|
|