init.flo.rc: Enable frequency synchronization on thread migration
Setting the cpu.notify_on_migrate node in sysfs, so that on a thread
migration of a task belonging 'apps' cgroup, the destination core's
frequency is synchronized to the source core's frequency.
Related-to-bug: 9857006 -- device gets super sluggish
Related-to-bug: 9863988 -- flo gets in a weird slow state w/ a lot of paging
Change-Id: Iae16ebffc88422c4602f4f6f4c350581badeadc0
Signed-off-by: Iliyan Malchev <malchev@google.com>
diff --git a/init.deb.rc b/init.deb.rc
index ea9afc5..859b152 100644
--- a/init.deb.rc
+++ b/init.deb.rc
@@ -250,6 +250,7 @@
write /sys/devices/system/cpu/cpu1/online 1
write /sys/devices/system/cpu/cpu2/online 1
write /sys/devices/system/cpu/cpu3/online 1
+ write /dev/cpuctl/apps/cpu.notify_on_migrate 1
on charger
# Enable Power modes and set the CPU Freq Sampling rates