workqueue: simplify wq_update_unbound_numa() by jumping to use_dfl_pwq if the target...
authorDaeseok Youn <daeseok.youn@gmail.com>
Fri, 18 Apr 2014 00:08:14 +0000 (09:08 +0900)
committerTejun Heo <tj@kernel.org>
Fri, 18 Apr 2014 19:50:34 +0000 (15:50 -0400)
commit534a3fbb3f37c42ec32de9876681c3195be0b658
treec5093904686c09963241bb071f65a2ff7ce50926
parent77668c8b559e4fe2acf2a0749c7c83cde49a5025
workqueue: simplify wq_update_unbound_numa() by jumping to use_dfl_pwq if the target cpumask equals wq's

wq_update_unbound_numa(), when it's decided that the newly updated
cpumask equals the default, looks at whether the current pwq is
already the default one and skips setting pwq to the default one.
This extra step is unnecessary and we can always jump to use_dfl_pwq
instead. Simplify the code by removing the conditional.
This doesn't make any functional difference.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c