pandora-state: reduce watchdog interval
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 14 May 2016 20:06:59 +0000 (23:06 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 14 May 2016 20:13:46 +0000 (23:13 +0300)
more wakeups

recipes/pandora-system/pandora-state.bb
recipes/pandora-system/pandora-state/rc.pandora-state

index c87375a..9cf5f04 100755 (executable)
@@ -5,7 +5,7 @@ COMPATIBLE_MACHINE = "omap3-pandora"
 
 RDEPENDS = "pandora-scripts"
 
-PR = "r26"
+PR = "r27"
 inherit update-rc.d
 
 INITSCRIPT_NAME = "pandora-state"
index 82fdee7..1995031 100644 (file)
@@ -135,6 +135,10 @@ d_start() {
 
        # remove the mmap limit, useful for emulators
        echo 0 > /proc/sys/vm/mmap_min_addr
+
+       # reduce watchdog threshold to reduce CPU wakeups - it's a debugging feature
+       # interval = watchdog_thresh * 2 / 5
+       echo 60 > /proc/sys/kernel/watchdog_thresh
 }
 
 case "$1" in