hikey: Initialize cpusets to boot-time values am: 8b50938d95 am: c36f39d81d am: 19d925c4ae
am: 9212da533f

Change-Id: Ie5e72e19c4f23f540de9d5a4c2b4af9cf551b55b
diff --git a/init.common.rc b/init.common.rc
index 41f582a..93f4f51 100644
--- a/init.common.rc
+++ b/init.common.rc
@@ -12,12 +12,18 @@
     # (if randomization is enabled the AEM-JIT will have a lower cache hit rate)
     write /proc/sys/kernel/randomize_va_space 0
 
+    # Initialize cpusets to boot-time values
+    write /dev/cpuset/foreground/cpus 0-7
+    write /dev/cpuset/foreground/boost/cpus 0-7
+    write /dev/cpuset/background/cpus 0-7
+    write /dev/cpuset/system-background/cpus 0-7
+    write /dev/cpuset/top-app/cpus 0-7
+
 on fs
     mount_all /fstab.${ro.hardware}
     setprop ro.crypto.fuse_sdcard false
 
 on post-fs
-
     # For legacy support
     # See storage config details at http://source.android.com/tech/storage/
     # since /storage is mounted on post-fs in init.rc