redbull: always report max cpu freq to unity tasks

Unity app incorrectly sets cpu affinity to max capacity cores.
Setup the library name and mask to always report the same max
cpu freq to the tasks.

Bug: 161324271
Test: build & play unity games
Change-Id: I508f0e561255360c7bb8c58c050dc3b49276015f
diff --git a/init.hardware.rc b/init.hardware.rc
index 533b3fe..57812df 100644
--- a/init.hardware.rc
+++ b/init.hardware.rc
@@ -163,6 +163,10 @@
     chown system system /sys/devices/platform/soc/soc:google,charger/charge_stop_level
     chown system system /sys/devices/platform/soc/soc:google,charger/charge_start_level
 
+    # report max frequency to unity tasks.
+    write /proc/sys/kernel/sched_lib_name "libunity.so"
+    write /proc/sys/kernel/sched_lib_mask_force 255
+
 on late-init
     chown system system /sys/devices/virtual/thermal/tz-by-name/skin-therm-monitor/trip_point_0_temp
     chown system system /sys/devices/virtual/thermal/tz-by-name/skin-therm-monitor/trip_point_0_hyst