From: Lai Jiangshan Date: Tue, 22 Jul 2014 05:02:00 +0000 (+0800) Subject: workqueue: remove @wakeup from worker_set_flags() X-Git-Tag: cleanup-for-v3.18~151^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=228f1d0018ba6b24c9f718a97a5bc35b24f1e1e3;p=pandora-kernel.git workqueue: remove @wakeup from worker_set_flags() worker_set_flags() has only two callers, each specifying %true and %false for @wakeup. Let's push the wake up to the caller and remove @wakeup from worker_set_flags(). The caller can use the following instead if wakeup is necessary: worker_set_flags(); if (need_more_worker(pool)) wake_up_worker(pool); This makes the code simpler. This patch doesn't introduce behavior changes. tj: Updated description and comments. Signed-off-by: Lai Jiangshan Signed-off-by: Tejun Heo --- Reading git-diff-tree failed