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:Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by:
Alexander Winkowski <dereference23@outlook.com>
Loading
Please register or sign in to comment