sched: walt: Replace smp_load_acquire with atomic_read for irq_work flags

Signed-off-by: Sorayukii <sorayukii69@gmail.com>
This commit is contained in:
Sorayukii 2026-05-06 17:30:59 +07:00
commit da96a2847a

View file

@ -1291,7 +1291,7 @@ void walt_finish_migrate(struct task_struct *p,
* and is in a pending state, do not push a migration
* job, because all magic will have been done anyway.
*/
if (!(smp_load_acquire(&walt_cpufreq_irq_work.flags) &
if (!(atomic_read(&walt_cpufreq_irq_work.flags) &
IRQ_WORK_PENDING)) {
raw_spin_lock(&speedchange_cpumask_lock);
src_rq->notif_pending = true;