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

Commit 1eacda6c authored by Sasha Levin's avatar Sasha Levin
Browse files

Revert "workqueue: make sure delayed work run in local cpu"



This reverts commit 1e7af294.

This commit is only needed on 4.1+

Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent d25b4531
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1442,13 +1442,13 @@ static void __queue_delayed_work(int cpu, struct workqueue_struct *wq,
	timer_stats_timer_set_start_info(&dwork->timer);

	dwork->wq = wq;
	/* timer isn't guaranteed to run in this cpu, record earlier */
	if (cpu == WORK_CPU_UNBOUND)
		cpu = raw_smp_processor_id();
	dwork->cpu = cpu;
	timer->expires = jiffies + delay;

	if (unlikely(cpu != WORK_CPU_UNBOUND))
		add_timer_on(timer, cpu);
	else
		add_timer(timer);
}

/**