]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
tools/power turbostat: Fix Bzy_MHz documentation typo
authorPeng Liu <liupeng17@lenovo.com>
Sat, 7 Oct 2023 05:46:22 +0000 (13:46 +0800)
committerLen Brown <len.brown@intel.com>
Fri, 12 Jan 2024 18:43:19 +0000 (12:43 -0600)
The code calculates Bzy_MHz by multiplying TSC_delta * APERF_delta/MPERF_delta
The man page erroneously showed that TSC_delta was divided.

Signed-off-by: Peng Liu <liupeng17@lenovo.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.8

index 8f08c3fd498d5b81185519728fc1c28a8a0d4d5f..1ba6340d3b3da5e79913cbe84509e319da297b52 100644 (file)
@@ -370,7 +370,7 @@ below the processor's base frequency.
 
 Busy% = MPERF_delta/TSC_delta
 
-Bzy_MHz = TSC_delta/APERF_delta/MPERF_delta/measurement_interval
+Bzy_MHz = TSC_delta*APERF_delta/MPERF_delta/measurement_interval
 
 Note that these calculations depend on TSC_delta, so they
 are not reliable during intervals when TSC_MHz is not running at the base frequency.