From 4be62649ce39a60c99b80be02b20cee2ed978d6f Mon Sep 17 00:00:00 2001 From: qwang59 Date: Fri, 23 Aug 2024 15:12:31 +0800 Subject: [PATCH] Enhance cstate single cpu turbo frequency function Signed-off-by: qwang59 --- BM/cstate/powermgr_cstate_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BM/cstate/powermgr_cstate_tests.sh b/BM/cstate/powermgr_cstate_tests.sh index 68fb242..ec08539 100755 --- a/BM/cstate/powermgr_cstate_tests.sh +++ b/BM/cstate/powermgr_cstate_tests.sh @@ -773,7 +773,7 @@ verify_single_cpu_freq() { turbo_on=$(cat "$cpu_no_turbo_mode") test_print_trc "Executing stress -c 1 -t 90 & in background" - taskset -c 1 stress -c 1 -t 90 & + taskset -c 0 stress -c 1 -t 90 & stress_pid=$! cpu_stat_debug=$(turbostat -i 1 sleep 1 2>&1) @@ -796,7 +796,7 @@ verify_single_cpu_freq() { current_freq=$(echo "$cpu_stat" | awk '{for(k=0;++k<=NF;)a[k]=a[k]?a[k] FS $k:$k} END{for(k=0;k++