summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2014-07-22 07:02:00 +0200
committerTejun Heo <tj@kernel.org>2014-07-22 18:08:36 +0200
commit228f1d0018ba6b24c9f718a97a5bc35b24f1e1e3 (patch)
tree670689166e14df1589a31b6d7a58673c6e4471eb /kernel/sysctl_binary.c
parentworkqueue: remove an unneeded UNBOUND test before waking up the next worker (diff)
downloadlinux-228f1d0018ba6b24c9f718a97a5bc35b24f1e1e3.tar.xz
linux-228f1d0018ba6b24c9f718a97a5bc35b24f1e1e3.zip
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 <laijs@cn.fujitsu.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions