kselftest: cpufreq: Backup and restore governor for sptests

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@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/20260707163647.6646-1-s921975628@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Yiwei Lin 2026-07-08 00:36:47 +08:00 • committed by Rafael J. Wysocki
commit 4763f0db60
2 changed files with 35 additions and 0 deletions