Skip to content
Commit 534a3fbb authored by Daeseok Youn's avatar Daeseok Youn Committed by Tejun Heo
Browse files

workqueue: simplify wq_update_unbound_numa() by jumping to use_dfl_pwq if the...


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: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 77668c8b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment