]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/x86/include/asm/irq_work.h
KVM: x86: Use gpa_t for cr2/gpa to fix TDP support on 32-bit KVM
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / include / asm / irq_work.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
3010279f
FW
2#ifndef _ASM_IRQ_WORK_H
3#define _ASM_IRQ_WORK_H
4
cd4d09ec 5#include <asm/cpufeature.h>
3010279f 6
a45525b5 7#ifdef CONFIG_X86_LOCAL_APIC
3010279f
FW
8static inline bool arch_irq_work_has_interrupt(void)
9{
93984fbd 10 return boot_cpu_has(X86_FEATURE_APIC);
3010279f 11}
a45525b5
TG
12extern void arch_irq_work_raise(void);
13#else
14static inline bool arch_irq_work_has_interrupt(void)
15{
16 return false;
17}
18#endif
3010279f
FW
19
20#endif /* _ASM_IRQ_WORK_H */