Skip to content

Commit

Permalink
KVM: Move irqchip_in_kernel() from ioapic.h to irq.h
Browse files Browse the repository at this point in the history
Moving irqchip_in_kernel() from ioapic.h to irq.h.

Signed-off-by: Xiantao Zhang <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
Xiantao Zhang authored and avikivity committed Oct 15, 2008
1 parent 3de42dc commit 2f74977
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 4 additions & 0 deletions arch/ia64/kvm/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,9 @@
#ifndef __IRQ_H
#define __IRQ_H

static inline int irqchip_in_kernel(struct kvm *kvm)
{
return 1;
}

#endif
1 change: 1 addition & 0 deletions arch/ia64/kvm/kvm-ia64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 0 additions & 7 deletions virt/kvm/ioapic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2f74977

Please sign in to comment.