public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/power turbostat: Fix Bzy_MHz calculation equation
@ 2023-10-07  5:46 Peng Liu
  2023-10-30  3:11 ` Peng Liu
  0 siblings, 1 reply; 7+ messages in thread
From: Peng Liu @ 2023-10-07  5:46 UTC (permalink / raw)
  Cc: lenb, linux-pm, linux-kernel, liupeng17

From: Peng Liu <liupeng17@lenovo.com>

To calculate Bzy_MHz, TSC_delta should multiply APERF_delta instead
of dividing it.

Signed-off-by: Peng Liu <liupeng17@lenovo.com>
---
 tools/power/x86/turbostat/turbostat.8 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/power/x86/turbostat/turbostat.8 b/tools/power/x86/turbostat/turbostat.8
index 8f08c3fd498d..1ba6340d3b3d 100644
--- a/tools/power/x86/turbostat/turbostat.8
+++ b/tools/power/x86/turbostat/turbostat.8
@@ -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.
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-11-29  6:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-07  5:46 [PATCH] tools/power turbostat: Fix Bzy_MHz calculation equation Peng Liu
2023-10-30  3:11 ` Peng Liu
2023-11-02 15:31   ` Doug Smythies
2023-11-03  1:55     ` Peng Liu
2023-11-03  4:48     ` Wyes Karny
2023-11-28  1:39     ` Len Brown
2023-11-29  1:57       ` 回复: [External] " Peng Peng17 Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox