]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "x86: CPU: Fix up "cpu MHz" in /proc/cpuinfo"
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Nov 2017 19:19:11 +0000 (11:19 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 10 Nov 2017 19:19:11 +0000 (11:19 -0800)
commit21b799664632a6645b9d435098748782368d4342
tree45ebd3e4347a879157dab48b2bc88f9bf2cf9286
parentf6a2216c778a5308356e9141c7c28fb4a83ee483
Revert "x86: CPU: Fix up "cpu MHz" in /proc/cpuinfo"

This reverts commit 6b22358409a10dd1c43825cf6038f9f9c70e3b41.

Sadly, it turns out that we really can't just do the cross-CPU IPI to
all CPU's to get their proper frequencies, because it's much too
expensive on systems with lots of cores.

So we'll have to revert this for now, and revisit it using a smarter
model (probably doing one system-wide IPI at open time, and doing all
the frequency calculations in parallel).

Reported-by: WANG Chao <chao.wang@ucloud.cn>
Reported-by: Ingo Molnar <mingo@kernel.org>
Cc: Rafael J Wysocki <rafael.j.wysocki@intel.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/aperfmperf.c
arch/x86/kernel/cpu/proc.c