summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue_internal.h
diff options
context:
space:
mode:
authorAlexander Gordeev <agordeev@redhat.com>2016-03-02 12:53:31 +0100
committerTejun Heo <tj@kernel.org>2016-03-02 10:28:47 -0500
commit9b7f6597f013d449d6700d11820faf91ee0ec985 (patch)
tree0d5ec5620940bfcdfecade4ff0c49944a1f7ff5f /kernel/workqueue_internal.h
parent23217b443b4b0439c8b55d3be0482d3cd7fbc5ac (diff)
downloadlinux-stable-9b7f6597f013d449d6700d11820faf91ee0ec985.tar.gz
linux-stable-9b7f6597f013d449d6700d11820faf91ee0ec985.tar.bz2
linux-stable-9b7f6597f013d449d6700d11820faf91ee0ec985.zip
sched/core: Get rid of 'cpu' argument in wq_worker_sleeping()
Given that wq_worker_sleeping() could only be called for a CPU it is running on, we do not need passing a CPU ID as an argument. Suggested-by: Oleg Nesterov <oleg@redhat.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/workqueue_internal.h')
-rw-r--r--kernel/workqueue_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue_internal.h b/kernel/workqueue_internal.h
index 45215870ac6c..8635417c587b 100644
--- a/kernel/workqueue_internal.h
+++ b/kernel/workqueue_internal.h
@@ -69,6 +69,6 @@ static inline struct worker *current_wq_worker(void)
* sched/core.c and workqueue.c.
*/
void wq_worker_waking_up(struct task_struct *task, int cpu);
-struct task_struct *wq_worker_sleeping(struct task_struct *task, int cpu);
+struct task_struct *wq_worker_sleeping(struct task_struct *task);
#endif /* _KERNEL_WORKQUEUE_INTERNAL_H */