hikey: Initialize cpusets to boot-time values

Kernel 3.18 doesn't have default settings for these
CGROUPS causing system crash before setting sys.boot_completed

Bug: 64023829
Test: Manual

Change-Id: I4d0200b1bfbf5a3c58a90d4fb0d48d8674360b78
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
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