summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/irq.h
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2017-04-07 11:50:23 +0300
committerRadim Krčmář <rkrcmar@redhat.com>2017-04-12 21:17:13 +0300
commit90bca0529e1bc94fd36659217603e8a1c3f9ad83 (patch)
tree041243ae001c638a756d3e5146699f54605122e3 /arch/x86/kvm/irq.h
parentf567080bdd967fa09326442ac18826c0618fa6c9 (diff)
downloadlinux-90bca0529e1bc94fd36659217603e8a1c3f9ad83.tar.xz
KVM: x86: get rid of pic_irqchip()
It seemed like a nice idea to encapsulate access to kvm->arch.vpic. But as the usage is already mixed, internal locks are taken outside of i8259.c and grepping for "vpic" only is much easier, let's just get rid of pic_irqchip(). Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Diffstat (limited to 'arch/x86/kvm/irq.h')
-rw-r--r--arch/x86/kvm/irq.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/kvm/irq.h b/arch/x86/kvm/irq.h
index 26d8dd4a4323..8fec66d1b9a9 100644
--- a/arch/x86/kvm/irq.h
+++ b/arch/x86/kvm/irq.h
@@ -78,11 +78,6 @@ void kvm_pic_destroy(struct kvm *kvm);
int kvm_pic_read_irq(struct kvm *kvm);
void kvm_pic_update_irq(struct kvm_pic *s);
-static inline struct kvm_pic *pic_irqchip(struct kvm *kvm)
-{
- return kvm->arch.vpic;
-}
-
static inline int pic_in_kernel(struct kvm *kvm)
{
int mode = kvm->arch.irqchip_mode;