]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: use proper hrtimer function to retrieve expiration time
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 8 Oct 2009 13:55:03 +0000 (10:55 -0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Fri, 16 Oct 2009 15:30:25 +0000 (12:30 -0300)
commit3267326e5a07559b093bba21b23325212f105dcf
tree6f7ac8a23d0ac1ae5af287916cdd356de114f877
parent9cf8c5884b1356c88794c8a5f829591840441331
KVM: use proper hrtimer function to retrieve expiration time

hrtimer->base can be temporarily NULL due to racing hrtimer_start.
See switch_hrtimer_base/lock_hrtimer_base.

Use hrtimer_get_remaining which is robust against it.

CC: stable@kernel.org
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/i8254.c
arch/x86/kvm/lapic.c