summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-11-07 17:32:02 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-07 17:32:02 +0000
commit3c58933aa785ab26f77284f6a1a4e93d2ebfcf04 (patch)
treee9e0ac8809c8cddc5cb9d3b81befc99d4db09975 /rootdir
parent6182d031d7a1968c2edc8862bb5a9bc5bc8922e9 (diff)
parent4a2539085062a715b0d345eb50ea48738423c909 (diff)
downloadsystem_core-3c58933aa785ab26f77284f6a1a4e93d2ebfcf04.zip
system_core-3c58933aa785ab26f77284f6a1a4e93d2ebfcf04.tar.gz
system_core-3c58933aa785ab26f77284f6a1a4e93d2ebfcf04.tar.bz2
am 4a253908: rootdir: init.rc: write default oom_adj before starting ueventd
* commit '4a2539085062a715b0d345eb50ea48738423c909': rootdir: init.rc: write default oom_adj before starting ueventd
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 0d2b7d4..145f642 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -1,4 +1,7 @@
on early-init
+ # Set init and its forked children's oom_adj.
+ write /proc/1/oom_adj -16
+
start ueventd
# create mountpoints
@@ -205,9 +208,6 @@ on boot
chown root system /sys/module/lowmemorykiller/parameters/minfree
chmod 0664 /sys/module/lowmemorykiller/parameters/minfree
- # Set init and its forked children's oom_adj.
- write /proc/1/oom_adj -16
-
# Tweak background writeout
write /proc/sys/vm/dirty_expire_centisecs 200
write /proc/sys/vm/dirty_background_ratio 5