ipq40xx: only include ath10k-board-qca4019 for the generic subtarget
[openwrt/staging/chunkeey.git] / target / linux / ipq806x / base-files / etc / init.d / cpufreq
1 #!/bin/sh /etc/rc.common
2
3 START=15
4
5 boot() {
6 local governor
7
8 governor=$(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_governor)
9
10 if [ "$governor" = "ondemand" ]; then
11 # Effective only with ondemand
12 echo 600000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
13 echo 600000 > /sys/devices/system/cpu/cpufreq/policy1/scaling_min_freq
14 echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
15 echo 50 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
16 fi
17 }