diff options
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; |