diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 69804e135509..2e2780c1abe2 100755 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -2205,6 +2205,7 @@ stat: out: raw_spin_unlock_irqrestore(&p->pi_lock, flags); +#ifdef CONFIG_SCHED_WALT if (success && sched_predl) { raw_spin_lock_irqsave(&cpu_rq(cpu)->lock, flags); if (do_pl_notif(cpu_rq(cpu))) @@ -2213,6 +2214,7 @@ out: SCHED_CPUFREQ_PL); raw_spin_unlock_irqrestore(&cpu_rq(cpu)->lock, flags); } +#endif return success; }