add transition package, power-settings package
[kernel-bfs] / kernel-power-settings / kernel-load
1 #!/bin/sh
2
3 f="$1"
4 test $# -eq 0 && f=/etc/default/kernel-power
5 test -f "$f" || exit 1
6 source "$f"
7 test -n "$UP_THRESHOLD" && echo $UP_THRESHOLD > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
8 test -n "$SAMPLING_RATE" && echo $SAMPLING_RATE > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
9 test -n "$MIN_FREQ" && echo $MIN_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
10 test -n "$MAX_FREQ" && echo $MAX_FREQ > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
11 test -n "$VDD1_OPPS_VSEL" && echo $VDD1_OPPS_VSEL > /sys/power/vdd1_opps_vsel
12 test -n "$DSP_OPPS_RATE" && echo $DSP_OPPS_RATE > /sys/power/dsp_opps_rate
13 test -n "$SMARTREFLEX_VDD1" && echo $SMARTREFLEX_VDD1 > /sys/power/sr_vdd1_autocomp
14 test -n "$SMARTREFLEX_VDD2" && echo $SMARTREFLEX_VDD2 > /sys/power/sr_vdd2_autocomp
15 exit 0