hikey: Initialize cpusets to boot-time values am: 8b50938d95
am: c36f39d81d

Change-Id: I5e108425dae6a837f8752a7e5c2224e2a433db99
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