diff options
author | Arun Mirpuri <amirpuri@codeaurora.org> | 2018-09-11 19:01:53 -0700 |
---|---|---|
committer | Arun Mirpuri <amirpuri@codeaurora.org> | 2018-09-14 14:12:08 -0700 |
commit | 1a333cde5432a2b6be06b157b45dbe178e8c3347 (patch) | |
tree | 16f76a8160e9f9b714ec6782abab299306b3bbaf /libcutils/sched_policy.cpp | |
parent | e289f184f9a46b7acc72eb5ae3fae7b7a015c952 (diff) |
Policy: Add cpuset for audio app
Define new cpuset for audio app. This is needed for improving
audio performance and reducing jitter
CRS-Fixed: 2313671
Change-Id: Ia7b69e7f6a91dfaf4be6b9777f18c8b6304a0205
Diffstat (limited to 'libcutils/sched_policy.cpp')
-rw-r--r-- | libcutils/sched_policy.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libcutils/sched_policy.cpp b/libcutils/sched_policy.cpp index ccb9cc49d6..78fb326df0 100644 --- a/libcutils/sched_policy.cpp +++ b/libcutils/sched_policy.cpp @@ -65,7 +65,6 @@ static int bg_schedboost_fd = -1; static int fg_schedboost_fd = -1; static int ta_schedboost_fd = -1; static int rt_schedboost_fd = -1; -static int aa_schedboost_fd = -1; // File descriptors open to /dev/blkio/../tasks, setup by initialize, or -1 on error static int bg_blkio_fd = -1; @@ -194,8 +193,6 @@ static void __initialize() { rs_cpuset_fd = open(filename, O_WRONLY | O_CLOEXEC); if (schedboost_enabled()) { - filename = "/dev/stune/audio-app/tasks"; - aa_schedboost_fd = open(filename, O_WRONLY | O_CLOEXEC); filename = "/dev/stune/top-app/tasks"; ta_schedboost_fd = open(filename, O_WRONLY | O_CLOEXEC); filename = "/dev/stune/foreground/tasks"; @@ -361,7 +358,7 @@ int set_cpuset_policy(int tid, SchedPolicy policy) case SP_AUDIO_APP: case SP_AUDIO_SYS: fd = aa_cpuset_fd; - boost_fd = aa_schedboost_fd; + boost_fd = fg_schedboost_fd; blkio_fd = fg_blkio_fd; break; case SP_RESTRICTED: @@ -487,7 +484,7 @@ int set_sched_policy(int tid, SchedPolicy policy) break; case SP_AUDIO_APP: case SP_AUDIO_SYS: - boost_fd = aa_schedboost_fd; + boost_fd = fg_schedboost_fd; break; default: boost_fd = -1; |