kvm: fix tsc_khz on older i386
commitbebe2081b0d5477a09f898628fc6eddcd436aff7
authorAvi Kivity <avi@redhat.com>
Sun, 29 Mar 2009 07:46:31 +0000 (29 10:46 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 29 Mar 2009 07:46:31 +0000 (29 10:46 +0300)
treecf04d41187a2dc734a3879d04856e9be4c037609
parent1223a029b36b0d9e73af76bcc274bb770f814886
kvm: fix tsc_khz on older i386

Older i386 kernels do not export tsc_khz.  Try to make a best effort attempt
by looking up tsc_khz, and falling back to a constant if it isn't exported.

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