KVM: Simplify kvm_timer
authorAvi Kivity <avi@redhat.com>
Thu, 26 Jul 2012 15:01:51 +0000 (18:01 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 1 Aug 2012 03:21:06 +0000 (00:21 -0300)
commit2a6eac9638a92b61de04bac4233d8ca665ae96af
tree8fb4be2b613c09e48ece185a87566bb5d87f9e17
parente9d90d472da97e1b1560bffb89578ba082c88a69
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>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h