diff options
author | Joel Fernandes <joelaf@google.com> | 2017-07-20 23:46:56 -0700 |
---|---|---|
committer | Georg Veichtlbauer <georg@vware.at> | 2023-07-16 13:06:17 +0200 |
commit | ebdb82f7b34aeab34623d7a5e4dd673fc2807842 (patch) | |
tree | c977a35914bcac8e246bde1596b36cd91c3403c5 /kernel/sched/sched.h | |
parent | ff383d94478af0bb62f828bad550e42681a7176e (diff) |
sched/fair: Skip frequency updates if CPU about to idle
If CPU is about to idle, prevent a frequency update. With the number of
schedutil governor wake ups are reduced by more than half on a test
playing bluetooth audio.
Test: sugov wake ups drop by more than half when playing music with
screen off (476 / 1092)
Bug: 64689959
Change-Id: I400026557b4134c0ac77f51c79610a96eb985b4a
Signed-off-by: Joel Fernandes <joelaf@google.com>
Diffstat (limited to 'kernel/sched/sched.h')
-rw-r--r-- | kernel/sched/sched.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 284cc86d3ad4..bafa2931c898 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -2032,6 +2032,7 @@ static const u32 prio_to_wmult[40] = { #define DEQUEUE_SLEEP 0x01 #define DEQUEUE_SAVE 0x02 /* matches ENQUEUE_RESTORE */ #define DEQUEUE_MOVE 0x04 /* matches ENQUEUE_MOVE */ +#define DEQUEUE_IDLE 0x80 /* The last dequeue before IDLE */ #define ENQUEUE_WAKEUP 0x01 #define ENQUEUE_RESTORE 0x02 |