summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/i8254.h
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@redhat.com>2016-03-03 00:56:48 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-04 11:30:12 +0300
commita3e1311549593692d98cba1ceb479f070dcd9873 (patch)
tree506308bdafeb193054bc6cc38b63cd0ea138746c /arch/x86/kvm/i8254.h
parent08e5ccf3ae8f2c5c8319fec521e312f7e775cb84 (diff)
downloadlinux-a3e1311549593692d98cba1ceb479f070dcd9873.tar.xz
KVM: i8254: remove pit and kvm from kvm_kpit_state
kvm isn't ever used and pit can be accessed with container_of. If you *really* need kvm, pit_state_to_pit(ps)->kvm. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/i8254.h')
-rw-r--r--arch/x86/kvm/i8254.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/i8254.h b/arch/x86/kvm/i8254.h
index 1945635904a7..f365dce4fb8d 100644
--- a/arch/x86/kvm/i8254.h
+++ b/arch/x86/kvm/i8254.h
@@ -31,8 +31,6 @@ struct kvm_kpit_state {
u32 speaker_data_on;
struct mutex lock;
- struct kvm *kvm;
- struct kvm_pit *pit;
bool reinject;
atomic_t pending; /* accumulated triggered timers */
atomic_t irq_ack;