Re: kvm: external module: do not hardcode tsc_khz

Avi Kivity
2009-03-24T09:36:25Z

Marcelo Tosatti wrote:
> 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.
>

Applied, thanks.

--
Do not meddle in the internals of kernels, for they are subtle and quick to panic.