android_system_core/libprocessgroup
Siarhei Vishniakou a3cf826de6 Set input thread priority to RT - try 2
This reverts commit de6707df0c.

Reason for revert: changing code without modifying JSON file now

Original description:

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: I3dabf4da0398324cf542e701c103551343b883cf
2024-10-31 22:39:25 +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 Revert "Set input thread priority to RT" 2024-10-31 18:43:18 +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 - try 2 2024-10-31 22:39:25 +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