Re: [PATCH] x86: use cpufreq_quick_get() for /proc/cpuinfo "cpu MHz" again

From: Linus Torvalds
Date: Tue Nov 14 2017 - 19:34:55 EST


On Tue, Nov 14, 2017 at 4:30 PM, Rafael J. Wysocki <rjw@xxxxxxxxxxxxx> wrote:
>
> OK, so may I queue it up?
>
> I don't think I can get that to work substantially faster anyway ...

Yeah, I think it's ok.

If somebody is really doing that /proc/cpuinfo in a loop, the rate
limiting should kick in. And if you do it only once, getting the right
frequency is worth it, I think.

Linus