Enable touch boost during camera.

Previously, the video encode hint would hotplug the big cores off while
the camera was running in order to improve thermals and power
consumption. Instead, have the camera run the big cores at 384MHz so we
can still apply POWER_HINT_INTERACTION.

This also restricts mm-qcamera-daemon to the small cluster in order to
prevent it from being boosted by touch boost.

bug 24583227

Change-Id: Ie30e400916162aeb08275bf8ebd8ed6cd5eb8b85
diff --git a/init.bullhead.rc b/init.bullhead.rc
index 49c0b78..6606d3b 100644
--- a/init.bullhead.rc
+++ b/init.bullhead.rc
@@ -415,6 +415,7 @@
     class late_start
     user camera
     group camera system inet input graphics
+    writepid /dev/cpuset/system-background/tasks
 
 on property:persist.radio.atfwd.start=false
     stop atfwd
diff --git a/power/power-8992.c b/power/power-8992.c
index 46febc9..6ca1110 100644
--- a/power/power-8992.c
+++ b/power/power-8992.c
@@ -38,7 +38,7 @@
 #include <pthread.h>
 #include <stdbool.h>
 
-#define LOG_TAG "QCOM PowerHAL"
+#define LOG_TAG "QCOMPowerHAL"
 #include <utils/Log.h>
 #include <hardware/hardware.h>
 #include <hardware/power.h>
@@ -78,11 +78,10 @@
     // if should_enable is false, we've already quit the camera
     if (video_encode_hint_should_enable == true && video_encode_hint_counter == expected_counter) {
         /* sched and cpufreq params
-         * A57 - offlines
-         * A53 - 4 cores online at 1.2GHz
-         */
-        int resource_values[] = {0x150C, 0x160C, 0x170C, 0x180C, 0x3DFF};
-
+           A53: 4 cores online at 1.2GHz max, 960 min
+           A57: 4 cores online at 384 max, 384 min
+        */
+        int resource_values[] = {0x150C, 0x1F03, 0x2303};
         perform_hint_action(new_hint_id,
                             resource_values, sizeof(resource_values)/sizeof(resource_values[0]));
         cur_hint_id = new_hint_id;
diff --git a/power/power.c b/power/power.c
index da8e9ed..308ea0c 100644
--- a/power/power.c
+++ b/power/power.c
@@ -37,7 +37,7 @@
 #include <dlfcn.h>
 #include <stdlib.h>
 
-#define LOG_TAG "QCOM PowerHAL"
+#define LOG_TAG "QCOMPowerHAL"
 #include <utils/Log.h>
 #include <hardware/hardware.h>
 #include <hardware/power.h>
@@ -221,7 +221,7 @@
             static int handle_little = 0;
 
             // big core freq bump for 500ms
-            int resources_big[] = {0x1F08};
+            int resources_big[] = {0x2312, 0x1F08};
             int duration_big = 500;
             static int handle_big = 0;
 
diff --git a/power/utils.c b/power/utils.c
index 0e7670e..199425b 100644
--- a/power/utils.c
+++ b/power/utils.c
@@ -39,7 +39,7 @@
 #include "hint-data.h"
 #include "power-common.h"
 
-#define LOG_TAG "QCOM PowerHAL"
+#define LOG_TAG "QCOMPowerHAL"
 #include <utils/Log.h>
 
 #define INTERACTION_BOOST