kvm: external module: do not hardcode tsc_khz
commitb395d156477a8b2c652d37f4ee8a0b4114df6223
authorMarcelo Tosatti <mtosatti@redhat.com>
Mon, 23 Mar 2009 17:46:43 +0000 (23 14:46 -0300)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:36:04 +0000 (24 11:36 +0200)
treee4e979dca32940a774aa6de0d6f6934239c28a43
parentef44113201a240fae7faf480591a9ecd73d337d1
kvm: external module: do not hardcode tsc_khz

external module compat hard codes tsc_khz as 2000000 if KERNEL_VERSION <
(2,6,23).

This breaks kvmclock on hosts with different frequency.

While tsc_khz was only exported on 2.6.23, the majority of relevant
older v2.6 based distros seem to have it exported.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
kernel/external-module-compat-comm.h