]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Merge branch 'for-4.4' into for-next
authorTejun Heo <tj@kernel.org>
Mon, 12 Oct 2015 16:19:09 +0000 (12:19 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 12 Oct 2015 16:19:09 +0000 (12:19 -0400)
kernel/workqueue.c

index 96d37473504049432884b6275b8a7c58165e238e..c579dbab2e36ab20dd94a5f753a480df17ae28ff 100644 (file)
@@ -1458,13 +1458,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);
+       add_timer_on(timer, cpu);
 }
 
 /**