From f21ceb5764d717fb7bc155253934e8b25a6e4da0 Mon Sep 17 00:00:00 2001 From: KalimochoAz Date: Sun, 24 Apr 2011 10:26:30 +0200 Subject: [PATCH] System permissions and ondemand CPU config changed Change-Id: Icd08120912eab4921b48abdae71ef23a20d5ed73 --- init.bahamas.rc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init.bahamas.rc b/init.bahamas.rc index 2f98fef..59e6007 100644 --- a/init.bahamas.rc +++ b/init.bahamas.rc @@ -47,6 +47,14 @@ on boot write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate 40000 write /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold 85 + # Set idle_sleep_mode permissions to radio + chown radio radio /sys/module/pm/parameters/idle_sleep_mode + + # for disabling IPv6 over mobile network. + write /proc/sys/net/ipv6/conf/rmnet0/disable_ipv6 1 + write /proc/sys/net/ipv6/conf/rmnet1/disable_ipv6 1 + write /proc/sys/net/ipv6/conf/rmnet2/disable_ipv6 1 + # performance tweaks for flash write /sys/block/mtdblock3/bdi/read_ahead_kb 4 write /sys/block/mtdblock4/bdi/read_ahead_kb 4 @@ -59,6 +67,9 @@ on boot write /sys/module/lowmemorykiller/parameters/minfile 0,0,0,5120,5632,6144 write /sys/module/lowmemorykiller/parameters/check_filepages 1 + write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90 + write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 50000 + # CPU_Scaling Governor make permissions chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor