diff options
author | Todd Kjos <tkjos@google.com> | 2015-06-29 22:29:54 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-29 22:29:54 +0000 |
commit | 1fb6e24f19533c2d7bfa1e8e69443d752e9df3ce (patch) | |
tree | 27ab3f9549cc84c90b38ca6b2a8214d7877391d6 /libcutils | |
parent | 1eb38187af952493486fff3d84a663744925abb5 (diff) | |
parent | 4cdce427f9ba0339ac7c58fdb4f56ac3630abf34 (diff) | |
download | system_core-1fb6e24f19533c2d7bfa1e8e69443d752e9df3ce.tar.gz system_core-1fb6e24f19533c2d7bfa1e8e69443d752e9df3ce.tar.bz2 system_core-1fb6e24f19533c2d7bfa1e8e69443d752e9df3ce.zip |
Merge "Fix janky navbar ripples -- incorrect timerslack values" into mnc-dev
Diffstat (limited to 'libcutils')
-rw-r--r-- | libcutils/sched_policy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c index cf50ba7ad..83222f481 100644 --- a/libcutils/sched_policy.c +++ b/libcutils/sched_policy.c @@ -50,6 +50,7 @@ static inline SchedPolicy _policy(SchedPolicy p) // timer slack value in nS enforced when the thread moves to background #define TIMER_SLACK_BG 40000000 +#define TIMER_SLACK_FG 50000 static pthread_once_t the_once = PTHREAD_ONCE_INIT; @@ -353,7 +354,8 @@ int set_sched_policy(int tid, SchedPolicy policy) ¶m); } - prctl(PR_SET_TIMERSLACK_PID, policy == SP_BACKGROUND ? TIMER_SLACK_BG : 0, tid); + prctl(PR_SET_TIMERSLACK_PID, + policy == SP_BACKGROUND ? TIMER_SLACK_BG : TIMER_SLACK_FG, tid); return 0; } |