diff options
| author | Jinseok Kim <always.starving0@gmail.com> | 2026-07-06 23:38:54 +0900 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-07-22 21:51:44 +0200 |
| commit | 60e32ff9ed850db22d16ff91a17e99a9efbca8cf (patch) | |
| tree | 5aac3ca1c452097af8102bb753f80393f094436f | |
| parent | c7aa1af7b327bb9af163fbd7b83ade6ac07845fd (diff) | |
| download | linux-next-60e32ff9ed850db22d16ff91a17e99a9efbca8cf.tar.gz linux-next-60e32ff9ed850db22d16ff91a17e99a9efbca8cf.zip | |
selftests/cpufreq: Remove unnecessary sudo from quick_shuffle()
The cpufreq selftests are always executed through main.sh, which verifies
that the test is run as root before dispatching any test case.
Therefore, invoking sudo inside quick_shuffle() is redundant and may cause
failures in environments where sudo is unavailable.
Signed-off-by: Jinseok Kim <always.starving0@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://patch.msgid.link/20260706143857.3306-2-always.starving0@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
| -rwxr-xr-x | tools/testing/selftests/cpufreq/special-tests.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/cpufreq/special-tests.sh b/tools/testing/selftests/cpufreq/special-tests.sh index 8d40505dc468..f45eb525f3b1 100755 --- a/tools/testing/selftests/cpufreq/special-tests.sh +++ b/tools/testing/selftests/cpufreq/special-tests.sh @@ -65,8 +65,8 @@ quick_shuffle() # this is called concurrently from governor_race for I in `seq 1000` do - echo ondemand | sudo tee $CPUFREQROOT/policy*/scaling_governor & - echo userspace | sudo tee $CPUFREQROOT/policy*/scaling_governor & + echo ondemand | tee $CPUFREQROOT/policy*/scaling_governor & + echo userspace | tee $CPUFREQROOT/policy*/scaling_governor & done } |
