summaryrefslogtreecommitdiff
path: root/kernel/sched
diff options
context:
space:
mode:
authorAlexander Gordeev <agordeev@redhat.com>2016-03-02 14:53:31 +0300
committerTejun Heo <tj@kernel.org>2016-03-02 18:28:47 +0300
commit9b7f6597f013d449d6700d11820faf91ee0ec985 (patch)
tree0d5ec5620940bfcdfecade4ff0c49944a1f7ff5f /kernel/sched
parent23217b443b4b0439c8b55d3be0482d3cd7fbc5ac (diff)
downloadlinux-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/sched')
-rw-r--r--kernel/sched/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 63d3a24e081a..81ff7f2ad37a 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3257,7 +3257,7 @@ static void __sched notrace __schedule(bool preempt)
if (prev->flags & PF_WQ_WORKER) {
struct task_struct *to_wakeup;
- to_wakeup = wq_worker_sleeping(prev, cpu);
+ to_wakeup = wq_worker_sleeping(prev);
if (to_wakeup)
try_to_wake_up_local(to_wakeup);
}