]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
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 604329ac3c999512e89f80450af8ed846b1d15c4..c6786e8b1bf47f9d69a2b3c5f25fc2711f13640a 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 7ad759e34295b086d138c42963737c1a47a25064..a6cf719811b7af85aa9949aa5a03a6ba2839afea 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 b52732f493c172b3059c13cff5cd4beaf2f02746..cd7ae7691c9d68eb3c066b6c47bbc4749c85e18d 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);