Re: [PATCH v2] kselftest: cpufreq: Backup and restore governor for sptests
From: Viresh Kumar
Date: Tue Jul 07 2026 - 23:46:39 EST
On 08-07-26, 00:36, Yiwei Lin wrote:
> After executing cpufreq sptest, the system governor
> will be overwritten with the governor switched
> during the test. Restore this setting to maintain
> consistency before and after the test.
>
> Signed-off-by: Yiwei Lin <s921975628@xxxxxxxxx>
>
> ---
> Change-Logs in V2:
> - Wait for all background processes to finish before restoring governors
> in sptest4
>
> ---
> tools/testing/selftests/cpufreq/governor.sh | 21 +++++++++++++++++++
> .../selftests/cpufreq/special-tests.sh | 14 +++++++++++++
> 2 files changed, 35 insertions(+)
Acked-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
--
viresh