cpufreq: limit cpufreq in recovery

Bug: 32502136
Change-Id: Id4aa189791d21d0e25890b66132b467e879dc81f
(cherry picked from commit dd28d3b7686313a391a540fadbc2746548f42186)
diff --git a/device.mk b/device.mk
index b3ea72f..5e38dc2 100644
--- a/device.mk
+++ b/device.mk
@@ -36,6 +36,7 @@
     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