Re: [PATCH v2] kselftest: cpufreq: Backup and restore governor for sptests
From: Rafael J. Wysocki (Intel)
Date: Wed Jul 22 2026 - 16:02:43 EST
On Wed, Jul 8, 2026 at 5:44 AM Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:
>
> 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>
Applied as 7.3 material, thanks!