Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 400c3818 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Move sched_policy.c off bionic's PR_SET_TIMERSLACK_PID.

Change-Id: I3a27803d46b5b88a10aa8043a114d780ed685e56
parent 4415e2a2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -47,6 +47,9 @@ static inline SchedPolicy _policy(SchedPolicy p)

#define CAN_SET_SP_SYSTEM 0 // non-zero means to implement set_sched_policy(tid, SP_SYSTEM)

// This prctl is only available in Android kernels.
#define PR_SET_TIMERSLACK_PID 41

// timer slack value in nS enforced when the thread moves to background
#define TIMER_SLACK_BG 40000000