[RFC 2/4] workqueue: use smp_processor_id() on queuing work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use the regular version with irq disabled.

Signed-off-by: Hillf Danton <hdanton@xxxxxxxx>
---

--- c/kernel/workqueue.c
+++ d/kernel/workqueue.c
@@ -1415,11 +1415,11 @@ retry:
 	/* pwq which will be used unless @work is executing elsewhere */
 	if (wq->flags & WQ_UNBOUND) {
 		if (req_cpu == WORK_CPU_UNBOUND)
-			cpu = wq_select_unbound_cpu(raw_smp_processor_id());
+			cpu = wq_select_unbound_cpu(smp_processor_id());
 		pwq = unbound_pwq_by_node(wq, cpu_to_node(cpu));
 	} else {
 		if (req_cpu == WORK_CPU_UNBOUND)
-			cpu = raw_smp_processor_id();
+			cpu = smp_processor_id();
 		pwq = per_cpu_ptr(wq->cpu_pwqs, cpu);
 	}
 





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux