universal7904: Setup task profiles

Change-Id: I47dbcf15f46cb050a98a251c1ff993a291d7d740
diff --git a/configs/task_profiles.json b/configs/task_profiles.json
new file mode 100644
index 0000000..78debf0
--- /dev/null
+++ b/configs/task_profiles.json
@@ -0,0 +1,28 @@
+{
+  "Profiles": [
+    {
+      "Name": "HighPerformance",
+      "Actions": [
+        {
+          "Name": "JoinCgroup",
+          "Params": {
+            "Controller": "cpuset",
+            "Path": "foreground"
+          }
+        }
+      ]
+    },
+    {
+      "Name": "MaxPerformance",
+      "Actions": [
+        {
+          "Name": "JoinCgroup",
+          "Params": {
+            "Controller": "cpuset",
+            "Path": "top-app"
+          }
+        }
+      ]
+    }
+  ]
+}
diff --git a/universal7904-common.mk b/universal7904-common.mk
index e7b118d..0be17aa 100644
--- a/universal7904-common.mk
+++ b/universal7904-common.mk
@@ -244,6 +244,10 @@
 PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE := true
 PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION := frameworks/base/config/boot-image-profile.txt
 
+# Task profiles
+PRODUCT_COPY_FILES += \
+    $(LOCAL_PATH)/configs/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
+
 # Thermal
 PRODUCT_PACKAGES += \
     android.hardware.thermal@2.0-service.samsung