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

Skip to content
Commit 95ee83ae authored by Sultan Alsawaf's avatar Sultan Alsawaf Committed by DarkJoker360
Browse files

sched/core: Skip rq lock in try_to_wake_up() when WALT is disabled



When WALT is disabled, do_pl_notif() always returns false, in which case
this bit of code serves no purpose. As a result, this WALT-specific code
spins on acquiring the rq lock in a hot path, wasting CPU time. Compile
it out when WALT is disabled to eliminate the unnecessary overhead.

Change-Id: I94ec3f2ce0faad049c0bf4974b2b4442883311a4
Signed-off-by: default avatarSultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: default avatarAlexander Winkowski <dereference23@outlook.com>
parent 5ea52363
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment