aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/namespaces.c
diff options
context:
space:
mode:
authorGautham R. Shenoy <[email protected]>2025-06-12 12:23:54 +0000
committerShuah Khan <[email protected]>2025-06-18 22:21:12 +0000
commitcda7ac8ce7de84cf32a3871ba5f318aa3b79381e (patch)
treef410783f24e89521fac0cfbb70faa820a3089f0e /fs/proc/namespaces.c
parentcpupower: split unitdir from libdir in Makefile (diff)
downloadkernel-cda7ac8ce7de84cf32a3871ba5f318aa3b79381e.tar.gz
kernel-cda7ac8ce7de84cf32a3871ba5f318aa3b79381e.zip
pm: cpupower: Fix the snapshot-order of tsc,mperf, clock in mperf_stop()
In the function mperf_start(), mperf_monitor snapshots the time, tsc and finally the aperf,mperf MSRs. However, this order of snapshotting in is reversed in mperf_stop(). As a result, the C0 residency (which is computed as delta_mperf * 100 / delta_tsc) is under-reported on CPUs that is 100% busy. Fix this by snapshotting time, tsc and then aperf,mperf in mperf_stop() in the same order as in mperf_start(). Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Gautham R. Shenoy <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'fs/proc/namespaces.c')
0 files changed, 0 insertions, 0 deletions