OSDN Git Service

ANDROID: sched/rt: schedtune: Add boost retention to RT
authorJoel Fernandes <joelaf@google.com>
Tue, 12 Sep 2017 00:10:37 +0000 (17:10 -0700)
committerJoel Fernandes <joelaf@google.com>
Thu, 1 Feb 2018 19:19:48 +0000 (11:19 -0800)
commita81d32264721fcb29e54d981fe17519cef600d78
treefe5cef4df8d34572f68ede0d7ad73c4fead84cae
parentfe09418d6f88b55920c576166b6e6a5ad456920f
ANDROID: sched/rt: schedtune: Add boost retention to RT

Boosted RT tasks can be deboosted quickly, this makes boost usless
for RT tasks and causes lots of glitching. Use timers to prevent
de-boost too soon and wait for long enough such that next enqueue
happens after a threshold.

While this can be solved in the governor, there are following
advantages:
- The approach used is governor-independent
- Reduces boost group lock contention for frequently sleepers/wakers

Note:
Fixed build breakage due to schedfreq dependency which isn't used
for RT anymore.

Bug: 30210506

Change-Id: I428a2695cac06cc3458cdde0dea72315e4e66c00
Signed-off-by: Joel Fernandes <joelaf@google.com>
include/linux/sched.h
kernel/sched/core.c
kernel/sched/rt.c
kernel/sched/sched.h