android_system_core/libprocessgroup
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
..
cgrouprc Reapply "libprocessgroup: Remove ACgroupController_getMaxActivati..." 2024-10-08 23:42:54 +00:00
cgrouprc_format Reapply "libprocessgroup: Remove cgroup.rc file" 2024-10-08 23:42:49 +00:00
include/processgroup Reapply "libprocessgroup: Remove cgroup.rc file" 2024-10-08 23:42:49 +00:00
profiles Set input thread priority to RT 2024-10-30 00:09:32 +00:00
setup Reapply "libprocessgroup: Combine all 3 ActivateControllers imple..." 2024-10-08 23:42:55 +00:00
tools libprocessgroup/tools: Add settaskprofile command-line tool 2021-11-09 22:35:51 +00:00
util Reapply "libprocessgroup: Combine all 3 ActivateControllers imple..." 2024-10-08 23:42:55 +00:00
Android.bp Reapply "libprocessgroup: Remove dependency on libcgrouprc" 2024-10-08 23:42:52 +00:00
build_flags.h Add build flag to split the cgroup v2 hierarchy into apps/system 2024-04-08 21:15:48 +00:00
cgroup_map.cpp Reapply "libprocessgroup: Combine all 3 ActivateControllers imple..." 2024-10-08 23:42:55 +00:00
cgroup_map.h Reapply "libprocessgroup: Combine all 3 ActivateControllers imple..." 2024-10-08 23:42:55 +00:00
internal.h Reapply "libprocessgroup: Remove cgroup.rc file" 2024-10-08 23:42:49 +00:00
OWNERS Remove carlosgalo from libprocessgroup OWNERS 2024-10-21 17:10:34 +00:00
processgroup.cpp Reapply "libprocessgroup: Combine all 3 ActivateControllers imple..." 2024-10-08 23:42:55 +00:00
sched_policy.cpp libprocessgroup: Remove schedtune support 2024-10-02 14:47:45 +00:00
task_profiles.cpp Set input thread priority to RT 2024-10-30 00:09:32 +00:00
task_profiles.h Merge "libprocessgroup: Remove SetClamps action" into main 2024-10-15 22:56:36 +00:00
task_profiles_test.cpp libprocessgroup: Rename CgroupController -> CgroupControllerWrapper 2024-08-09 18:35:29 +00:00
TEST_MAPPING Revert^2 "Move StagedRollbackTest from postsubmit to presubmit" 2024-06-27 01:59:14 +00:00