diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2021-04-22 23:02:28 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2021-05-12 21:34:17 +0200 |
commit | e6fe3f422be128b7d65de607f6ae67bedc55f0ca (patch) | |
tree | 4beec92733fb129c6def09fcf280453e85f9fed3 /kernel/sched/loadavg.c | |
parent | 8fc2858e572ce761bffcade81a42ac72005e76f9 (diff) | |
download | linux-stable-e6fe3f422be128b7d65de607f6ae67bedc55f0ca.tar.gz linux-stable-e6fe3f422be128b7d65de607f6ae67bedc55f0ca.tar.bz2 linux-stable-e6fe3f422be128b7d65de607f6ae67bedc55f0ca.zip |
sched: Make multiple runqueue task counters 32-bit
Make:
struct dl_rq::dl_nr_migratory
struct dl_rq::dl_nr_running
struct rt_rq::rt_nr_boosted
struct rt_rq::rt_nr_migratory
struct rt_rq::rt_nr_total
struct rq::nr_uninterruptible
32-bit.
If total number of tasks can't exceed 2**32 (and less due to futex pid
limits), then per-runqueue counters can't as well.
This patchset has been sponsored by REX Prefix Eradication Society.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210422200228.1423391-4-adobriyan@gmail.com
Diffstat (limited to 'kernel/sched/loadavg.c')
-rw-r--r-- | kernel/sched/loadavg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/loadavg.c b/kernel/sched/loadavg.c index 1c79896f1bc0..954b229868d9 100644 --- a/kernel/sched/loadavg.c +++ b/kernel/sched/loadavg.c @@ -81,7 +81,7 @@ long calc_load_fold_active(struct rq *this_rq, long adjust) long nr_active, delta = 0; nr_active = this_rq->nr_running - adjust; - nr_active += (long)this_rq->nr_uninterruptible; + nr_active += (int)this_rq->nr_uninterruptible; if (nr_active != this_rq->calc_load_active) { delta = nr_active - this_rq->calc_load_active; |