mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
18 lines
237 B
C
18 lines
237 B
C
![]() |
#ifndef __IRQ_H
|
||
|
#define __IRQ_H
|
||
|
|
||
|
#include <linux/kvm_host.h>
|
||
|
|
||
|
static inline int irqchip_in_kernel(struct kvm *kvm)
|
||
|
{
|
||
|
int ret = 0;
|
||
|
|
||
|
#ifdef CONFIG_KVM_MPIC
|
||
|
ret = ret || (kvm->arch.mpic != NULL);
|
||
|
#endif
|
||
|
smp_rmb();
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
#endif
|