diff options
author | Gleb Natapov <gleb@redhat.com> | 2013-04-28 13:50:07 +0400 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-04-28 13:50:07 +0400 |
commit | 064d1afaa5a60fc391d0b4b77599fc8f63f99cd3 (patch) | |
tree | 2e640cdfa50b0048c52e021f07a8b24560251b26 /arch/powerpc/kvm/irq.h | |
parent | 730dca42c1d363c939da18c1499c7327c66e2b37 (diff) | |
parent | 8b78645c93b5d469e8006d68dbc92edc2640c654 (diff) | |
download | linux-064d1afaa5a60fc391d0b4b77599fc8f63f99cd3.tar.xz |
Merge git://github.com/agraf/linux-2.6.git kvm-ppc-next into queue
Diffstat (limited to 'arch/powerpc/kvm/irq.h')
-rw-r--r-- | arch/powerpc/kvm/irq.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/irq.h b/arch/powerpc/kvm/irq.h new file mode 100644 index 000000000000..f1e27fdc8c2e --- /dev/null +++ b/arch/powerpc/kvm/irq.h @@ -0,0 +1,17 @@ +#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 |