Re: [PATCH v2 1/2] x86/cpu: Introduce x86_get_cpufreq_khz()

From: Peter Zijlstra
Date: Thu Dec 02 2021 - 17:25:26 EST


On Wed, Dec 01, 2021 at 10:46:49AM +0800, zhenwei pi wrote:
> Wrapper function x86_get_cpufreq_khz() to get frequency on a x86
> platform, hide detailed implementation from proc routine.
>
> Also export this function for the further use, a typical case is that
> kvm module gets the frequency of the host and tell the guest side by
> kvmclock.

This function was already complete crap, and now you want to export it,
*WHY* ?!

What possible use does KVM have for this random number generator?