KVM: Fix build error due to 64-bit division in nsec_to_cycles()
authorAvi Kivity <avi@redhat.com>
Thu, 26 Aug 2010 10:38:03 +0000 (13:38 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:51:43 +0000 (10:51 +0200)
commit217fc9cfca21a0bc2f4246183ebd8ee9863b019d
tree905be9d9db39e189ecf7221d520646cf18b7b4b4
parent34d1f4905eb66478a890ea808ec58bc842e6e589
KVM: Fix build error due to 64-bit division in nsec_to_cycles()

Use do_div() instead.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c