From: Lai Jiangshan Date: Tue, 22 Jul 2014 05:01:59 +0000 (+0800) Subject: workqueue: remove an unneeded UNBOUND test before waking up the next worker X-Git-Tag: omap-for-v3.17/fixes-against-rc2~192^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a489a03eca74cd1d5ac771f4b2ae2c826aab0b30;p=pandora-kernel.git workqueue: remove an unneeded UNBOUND test before waking up the next worker In process_one_work(): if ((worker->flags & WORKER_UNBOUND) && need_more_worker(pool)) wake_up_worker(pool); the first test is unneeded. Even if the first test is removed, it doesn't affect the wake-up logic for WORKER_UNBOUND, and it will not introduce any useless wake-ups for normal per-cpu workers since nr_running is always >= 1. It will introduce useless/redundant wake-ups for CPU_INTENSIVE, but this case is rare and the next patch will also remove this redundant wake-up. tj: Minor updates to the description and comment. Signed-off-by: Lai Jiangshan Signed-off-by: Tejun Heo --- Reading git-diff-tree failed