lkml.org 
[lkml]   [2019]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 1/4] sched/fair: Make need_active_balance() return bools
Date
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
\
 
 \ /
  Last update: 2019-08-15 16:52    [W:0.185 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site