summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/lapic.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2012-07-26 18:01:51 +0300
committerMarcelo Tosatti <mtosatti@redhat.com>2012-08-01 00:21:06 -0300
commit2a6eac9638a92b61de04bac4233d8ca665ae96af (patch)
tree8fb4be2b613c09e48ece185a87566bb5d87f9e17 /arch/x86/kvm/lapic.h
parente9d90d472da97e1b1560bffb89578ba082c88a69 (diff)
downloadop-kernel-dev-2a6eac9638a92b61de04bac4233d8ca665ae96af.zip
op-kernel-dev-2a6eac9638a92b61de04bac4233d8ca665ae96af.tar.gz
KVM: Simplify kvm_timer
'reinject' is never initialized 't_ops' only serves as indirection to lapic_is_periodic; call that directly instead 'kvm' is never used 'vcpu' can be derived via container_of Remove these fields. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/lapic.h')
-rw-r--r--arch/x86/kvm/lapic.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/x86/kvm/lapic.h b/arch/x86/kvm/lapic.h
index d7251c9..166766f 100644
--- a/arch/x86/kvm/lapic.h
+++ b/arch/x86/kvm/lapic.h
@@ -11,14 +11,6 @@ struct kvm_timer {
u32 timer_mode_mask;
u64 tscdeadline;
atomic_t pending; /* accumulated triggered timers */
- bool reinject;
- struct kvm_timer_ops *t_ops;
- struct kvm *kvm;
- struct kvm_vcpu *vcpu;
-};
-
-struct kvm_timer_ops {
- bool (*is_periodic)(struct kvm_timer *);
};
struct kvm_lapic {
OpenPOWER on IntegriCloud