[PATCH v2 1/4] sched/fair: Make need_active_balance() return bools

From: Valentin Schneider
Date: Thu Aug 15 2019 - 10:51:58 EST


That function has no need to return ints, make it return bools.

Signed-off-by: Valentin Schneider <valentin.schneider@xxxxxxx>
---
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