diff options
author | Avi Kivity <avi@redhat.com> | 2012-07-26 11:01:51 -0400 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2012-07-31 23:21:06 -0400 |
commit | 2a6eac9638a92b61de04bac4233d8ca665ae96af (patch) | |
tree | 8fb4be2b613c09e48ece185a87566bb5d87f9e17 /arch/x86/kvm/lapic.h | |
parent | e9d90d472da97e1b1560bffb89578ba082c88a69 (diff) |
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.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/x86/kvm/lapic.h b/arch/x86/kvm/lapic.h index d7251c92ed4..166766fffd9 100644 --- a/arch/x86/kvm/lapic.h +++ b/arch/x86/kvm/lapic.h | |||
@@ -11,14 +11,6 @@ struct kvm_timer { | |||
11 | u32 timer_mode_mask; | 11 | u32 timer_mode_mask; |
12 | u64 tscdeadline; | 12 | u64 tscdeadline; |
13 | atomic_t pending; /* accumulated triggered timers */ | 13 | atomic_t pending; /* accumulated triggered timers */ |
14 | bool reinject; | ||
15 | struct kvm_timer_ops *t_ops; | ||
16 | struct kvm *kvm; | ||
17 | struct kvm_vcpu *vcpu; | ||
18 | }; | ||
19 | |||
20 | struct kvm_timer_ops { | ||
21 | bool (*is_periodic)(struct kvm_timer *); | ||
22 | }; | 14 | }; |
23 | 15 | ||
24 | struct kvm_lapic { | 16 | struct kvm_lapic { |