diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2016-03-02 14:53:31 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2016-03-02 18:28:47 +0300 |
commit | 9b7f6597f013d449d6700d11820faf91ee0ec985 (patch) | |
tree | 0d5ec5620940bfcdfecade4ff0c49944a1f7ff5f /kernel/workqueue_internal.h | |
parent | 23217b443b4b0439c8b55d3be0482d3cd7fbc5ac (diff) | |
download | linux-9b7f6597f013d449d6700d11820faf91ee0ec985.tar.xz |
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.h | 2 |
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 */ |