platform_system_core/libprocessgroup
Suren Baghdasaryan 35221b5338 libprocessgroup: Support per-API level task profiles
When task profiles changes happen, devices released under older API
levels might have to use the same profiles as before. This might be
due to for missing kernel features or some other reasons. Add support
for per-API task profiles to accommodate this scenario. With this
mechanism when ro.product.first_api_level is non-empty, the system
looks for /system/etc/profiles/task_profiles_<api level>.json file
and uses it if it exists. If ro.product.first_api_level is not defined
or per-API task profiles file does not exist the system falls back to
the default /system/etc/profiles/task_profiles.json file.
As before, these task profiles can be competely overwritten using
/vendor/etc/task_profiles.json if needed.

Bug: 172066799
Test: boot with per-API task profiles
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I1671b341b3a0fb5e99d0b0788315c61088326b09
2020-11-23 22:08:41 +00:00
..
cgrouprc Make libraries {vendor_,}ramdisk_available. 2020-10-28 10:57:51 -07:00
cgrouprc_format Make libraries {vendor_,}ramdisk_available. 2020-10-28 10:57:51 -07:00
include/processgroup libprocessgroup: Prevent SetProcessProfiles from using cached fd 2020-02-14 01:42:11 +00:00
profiles libprocessgroup: Support per-API level task profiles 2020-11-23 22:08:41 +00:00
setup libprocessgroup: Support per-API level task profiles 2020-11-23 22:08:41 +00:00
Android.bp Make libraries {vendor_,}ramdisk_available. 2020-10-28 10:57:51 -07:00
cgroup_map.cpp libprocessgroup: support for cgroup v2 hierarchy 2020-06-10 09:14:00 -07:00
cgroup_map.h Fix IsUsable to check for each controller separately 2019-06-26 11:35:11 -07:00
OWNERS Add surenb@ to libprocessgroup OWNERS 2019-09-17 08:50:04 -07:00
processgroup.cpp libprocessgroup: Prevent SetProcessProfiles from using cached fd 2020-02-14 01:42:11 +00:00
sched_policy.cpp libprocessgroup: ensure schedboost_enabled is true with uclamp 2020-01-27 11:04:03 +00:00
task_profiles.cpp libprocessgroup: Support per-API level task profiles 2020-11-23 22:08:41 +00:00
task_profiles.h libprocessgroup: Support write to file feature 2020-11-03 20:56:48 +08:00