sched: Change root_domain->overload type to int
authorValentin Schneider <valentin.schneider@arm.com>
Wed, 4 Jul 2018 10:17:45 +0000 (11:17 +0100)
committerDouglas RAILLARD <douglas.raillard@arm.com>
Tue, 14 Aug 2018 15:32:19 +0000 (16:32 +0100)
sizeof(_Bool) is implementation defined, so let's just go with 'int' as
is done for other structures e.g. sched_domain_shared->has_idle_cores.

The local 'overload' variable used in update_sd_lb_stats can remain
bool, as it won't impact any struct layout and can be assigned to the
root_domain field.

cc: Ingo Molnar <mingo@redhat.com>
cc: Peter Zijlstra <peterz@infradead.org>

Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Morten Rasmussen <morten.rasmussen@arm.com>
kernel/sched/sched.h

index 17267ab29987c996cd320050d374a7b3e4fa0b19..25057135ee6ecf0b95e3be1d88b4576f7fb11eb2 100644 (file)
@@ -1721,7 +1721,7 @@ static inline void add_nr_running(struct rq *rq, unsigned count)
        if (prev_nr < 2 && rq->nr_running >= 2) {
 #ifdef CONFIG_SMP
                if (!rq->rd->overload)
-                       rq->rd->overload = true;
+                       rq->rd->overload = 1;
 #endif
        }