Messages in this thread Patch in this message | | | From | Valentin Schneider <> | Subject | [PATCH v2 1/4] sched/fair: Make need_active_balance() return bools | Date | Thu, 15 Aug 2019 15:51:04 +0100 |
| |
That function has no need to return ints, make it return bools.
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com> --- kernel/sched/fair.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 1054d2cf6aaa..22be1ca8d117 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8734,12 +8734,12 @@ voluntary_active_balance(struct lb_env *env) return 0; } -static int need_active_balance(struct lb_env *env) +static bool need_active_balance(struct lb_env *env) { struct sched_domain *sd = env->sd; if (voluntary_active_balance(env)) - return 1; + return true; return unlikely(sd->nr_balance_failed > sd->cache_nice_tries+2); } -- 2.22.0
| |