diff options
author | Phil Auld <pauld@redhat.com> | 2020-08-05 23:31:38 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-08-06 10:36:59 +0300 |
commit | a1bd06853ee478d37fae9435c5521e301de94c67 (patch) | |
tree | 124eac15d75e16dd028c3b754316a1c386ff1604 /kernel | |
parent | 4da9f3302615f4191814f826054846bf843e24fa (diff) | |
download | linux-a1bd06853ee478d37fae9435c5521e301de94c67.tar.xz |
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')
-rw-r--r-- | kernel/sched/sched.h | 2 |
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 */ |