mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
cpufrequtils: remove cpufrequtils
the only file in the package is now the initskript to configre powersave mode using cpupower which is shipped with the kernel. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -54,16 +54,9 @@ case "${1}" in
|
||||
echo_ok;
|
||||
;;
|
||||
esac
|
||||
CPUCOUNT=`ls /sys/devices/system/cpu/cpu*/cpufreq/affected_cpus 2> /dev/null | wc -l `;
|
||||
let CPUCOUNT-=1
|
||||
# Set the governor to test if it works
|
||||
cpufreq-set -g $GOV
|
||||
# Set the governor
|
||||
cpupower frequency-set -g $GOV >/dev/null
|
||||
if [ ${?} = 0 ]; then
|
||||
# Set the governor to ondemand for all cpus
|
||||
for i in `seq 0 $CPUCOUNT`;
|
||||
do
|
||||
cpufreq-set -c $i -g $GOV > /dev/null
|
||||
done
|
||||
echo_ok;
|
||||
else
|
||||
echo_failure;
|
||||
|
||||
Reference in New Issue
Block a user