aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/kernel/sched
diff options
context:
space:
mode:
authorPhil Auld <pauld@redhat.com>2020-08-05 16:31:38 -0400
committerIngo Molnar <mingo@kernel.org>2020-08-06 09:36:59 +0200
commita1bd06853ee478d37fae9435c5521e301de94c67 (patch)
tree124eac15d75e16dd028c3b754316a1c386ff1604 /kernel/sched
parentMerge tag 'x86-fsgsbase-2020-08-04' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip (diff)
downloadwireguard-linux-a1bd06853ee478d37fae9435c5521e301de94c67.tar.xz
wireguard-linux-a1bd06853ee478d37fae9435c5521e301de94c67.zip
sched: Fix use of count for nr_running tracepoint
The count field is meant to tell if an update to nr_running is an add or a subtract. Make it do so by adding the missing minus sign. Fixes: 9d246053a691 ("sched: Add a tracepoint to track rq->nr_running") Signed-off-by: Phil Auld <pauld@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20200805203138.1411-1-pauld@redhat.com
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 3fd283892761..28709f6b0975 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1999,7 +1999,7 @@ static inline void sub_nr_running(struct rq *rq, unsigned count)
{
rq->nr_running -= count;
if (trace_sched_update_nr_running_tp_enabled()) {
- call_trace_sched_update_nr_running(rq, count);
+ call_trace_sched_update_nr_running(rq, -count);
}
/* Check if we still need preemption */