mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-28 12:13:39 -04:00
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>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
c7aa1af7b3
commit
60e32ff9ed
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user