summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormohamed.khadri <mohamed.khadri@lge.com>2016-10-18 21:37:35 -0700
committerPat Tjin <pattjin@google.com>2016-10-28 21:02:42 +0000
commitdd28d3b7686313a391a540fadbc2746548f42186 (patch)
tree9234edb5e28b56705bbbda7b4c2a81c8314477f1
parent376276322ec9c0787d2e334a2db127563e0a0535 (diff)
downloadbullhead-dd28d3b7686313a391a540fadbc2746548f42186.tar.gz
cpufreq: limit cpufreq in recovery
Bug: 32502136 Change-Id: Id4aa189791d21d0e25890b66132b467e879dc81f
-rw-r--r--device.mk1
-rw-r--r--init.recovery.bullhead.rc7
2 files changed, 8 insertions, 0 deletions
diff --git a/device.mk b/device.mk
index b3ea72f..5e38dc2 100644
--- a/device.mk
+++ b/device.mk
@@ -36,6 +36,7 @@ PRODUCT_COPY_FILES += \
device/lge/bullhead/init.bullhead.usb.rc:root/init.bullhead.usb.rc \
device/lge/bullhead/fstab.bullhead:root/fstab.bullhead \
device/lge/bullhead/ueventd.bullhead.rc:root/ueventd.bullhead.rc \
+ device/lge/bullhead/init.recovery.bullhead.rc:root/init.recovery.bullhead.rc \
device/lge/bullhead/init.bullhead.ramdump.rc:root/init.bullhead.ramdump.rc \
device/lge/bullhead/init.bullhead.fp.rc:root/init.bullhead.fp.rc
diff --git a/init.recovery.bullhead.rc b/init.recovery.bullhead.rc
new file mode 100644
index 0000000..74ba632
--- /dev/null
+++ b/init.recovery.bullhead.rc
@@ -0,0 +1,7 @@
+on boot
+ write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 960000
+ write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 960000
+ write /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq 960000
+ write /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq 960000
+ write /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq 960000
+ write /sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq 960000