]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
x86: KVM guest: kvm_get_tsc_khz: return khz, not lpj
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 5 Dec 2008 20:36:45 +0000 (18:36 -0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:44 +0000 (16:55 +0200)
commite93353c93a3ba4215633ce930784f40a4e94e3f9
treeadb847a71fa51c70b968573d4d5de58d27ca1f9a
parentad218f85e388e8ca816ff09d91c246cd014c53a8
x86: KVM guest: kvm_get_tsc_khz: return khz, not lpj

kvm_get_tsc_khz() currently returns the previously-calculated preset_lpj
value, but it is in loops-per-jiffy, not kHz. The current code works
correctly only when HZ=1000.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kernel/kvmclock.c