From: Joonsoo Kim Date: Wed, 15 Aug 2012 14:25:41 +0000 (+0900) Subject: workqueue: use system_highpri_wq for unbind_work X-Git-Tag: v3.12-rc1~2280^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7635d2fd7f0fa63b6ec03050614c314d7139f14a;p=kernel%2Fkernel-generic.git workqueue: use system_highpri_wq for unbind_work To speed cpu down processing up, use system_highpri_wq. As scheduling priority of workers on it is higher than system_wq and it is not contended by other normal works on this cpu, work on it is processed faster than system_wq. tj: CPU up/downs care quite a bit about latency these days. This shouldn't hurt anything and makes sense. Signed-off-by: Joonsoo Kim Signed-off-by: Tejun Heo --- diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 8936761..7da2471 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -3680,7 +3680,7 @@ static int __devinit workqueue_cpu_down_callback(struct notifier_block *nfb, case CPU_DOWN_PREPARE: /* unbinding should happen on the local CPU */ INIT_WORK_ONSTACK(&unbind_work, gcwq_unbind_fn); - schedule_work_on(cpu, &unbind_work); + queue_work_on(cpu, system_highpri_wq, &unbind_work); flush_work(&unbind_work); break; }