android_system_core/libprocessgroup/profiles
Siarhei Vishniakou 930f77b02c Set input thread priority to RT
To improve input latency, set the critical input threads to RT priority.
This will use RT priority on AOSP devices by default. OEMs can still
choose to customize what "input policy" means for their device, which
may not necessarily mean RT.

For example, on device with multiple small / big cores, input task
affinity could be changed to prioritize big cores + higher CPU frequency
/ voltage, but still keep the standard / default input thread priority.

With this patch, I'm finding that sometimes, one of the critical input
threads has priority 100 instead of the expected 98. Still looking into
that specific issue, but the issue is already present with the existing
"input policy" code.

Bug: 330719044
Flag: com.android.input.flags.enable_input_policy_profile
Test: took perfetto trace and checked the priority on InputDispatcher
and InputReader threads.

Change-Id: I75b6a726f0d066f16bdec26f6cf90721479d17ff
2024-10-30 00:09:32 +00:00
..
Android.bp Add proposed trendy teams for VTS modules 2024-10-12 08:53:10 +00:00
cgroups.json Revert "Migrate the blkio controller to the v2 cgroup hierarchy" 2024-01-26 03:54:47 +00:00
cgroups.proto libprocessgroup: Add MaxActivationDepth 2024-06-18 15:50:21 +00:00
cgroups.recovery.json libprocessgroup: fix uid/pid hierarchy for recovery mode 2021-02-11 17:03:19 -08:00
cgroups_test.h libprocessgroup_proto_test split into multiple files 2019-03-15 12:34:42 -07:00
task_profiles.json Set input thread priority to RT 2024-10-30 00:09:32 +00:00
task_profiles.proto Add support for memcg v2 attributes 2022-03-17 14:18:14 -07:00
task_profiles_test.h libprocessgroup_proto_test split into multiple files 2019-03-15 12:34:42 -07:00
test.cpp Fix build with new googletest 2019-11-10 04:08:25 +00:00
test_vendor.cpp libprocessgroup: Add VTS tests for vendor JSON files 2019-03-15 16:28:42 -07:00