KVM: Move irqchip_in_kernel() from ioapic.h to irq.h
authorXiantao Zhang <xiantao.zhang@intel.com>
Sat, 27 Sep 2008 03:46:36 +0000 (11:46 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 15 Oct 2008 12:25:36 +0000 (14:25 +0200)
Moving irqchip_in_kernel() from ioapic.h to irq.h.

Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/ia64/kvm/irq.h
arch/ia64/kvm/kvm-ia64.c
virt/kvm/ioapic.h

index 604329a..c6786e8 100644 (file)
@@ -23,5 +23,9 @@
 #ifndef __IRQ_H
 #define __IRQ_H
 
+static inline int irqchip_in_kernel(struct kvm *kvm)
+{
+       return 1;
+}
 
 #endif
index 7ad759e..a6cf719 100644 (file)
@@ -45,6 +45,7 @@
 #include "iodev.h"
 #include "ioapic.h"
 #include "lapic.h"
+#include "irq.h"
 
 static unsigned long kvm_vmm_base;
 static unsigned long kvm_vsa_base;
index b52732f..cd7ae76 100644 (file)
@@ -79,13 +79,6 @@ static inline struct kvm_ioapic *ioapic_irqchip(struct kvm *kvm)
        return kvm->arch.vioapic;
 }
 
-#ifdef CONFIG_IA64
-static inline int irqchip_in_kernel(struct kvm *kvm)
-{
-       return 1;
-}
-#endif
-
 struct kvm_vcpu *kvm_get_lowest_prio_vcpu(struct kvm *kvm, u8 vector,
                                       unsigned long bitmap);
 void kvm_ioapic_update_eoi(struct kvm *kvm, int vector, int trigger_mode);