diff options
author | Valentin Schneider <valentin.schneider@arm.com> | 2018-09-26 16:12:06 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-11-04 00:59:22 +0100 |
commit | 47b7aee14fd7e453370a5d15dfb11c958ca360f2 (patch) | |
tree | de5221ce5577bd4f3b19cdfb2bd144f629aa4b5f /kernel/sched | |
parent | 40fa3780bac2b654edf23f6b13f4e2dd550aea10 (diff) | |
download | linux-47b7aee14fd7e453370a5d15dfb11c958ca360f2.tar.gz linux-47b7aee14fd7e453370a5d15dfb11c958ca360f2.tar.bz2 linux-47b7aee14fd7e453370a5d15dfb11c958ca360f2.zip |
sched/fair: Clean up load_balance() condition
The alignment of the condition is off, clean that up.
Also, logical operators have lower precedence than bitwise/relational
operators, so remove one layer of parentheses to make the condition a
bit simpler to follow.
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Dietmar.Eggemann@arm.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: patrick.bellasi@arm.com
Cc: vincent.guittot@linaro.org
Link: http://lkml.kernel.org/r/1537974727-30788-1-git-send-email-valentin.schneider@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/fair.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index ee271bb661cc..4e298931a715 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -8877,9 +8877,9 @@ out_all_pinned: out_one_pinned: /* tune up the balancing interval */ - if (((env.flags & LBF_ALL_PINNED) && - sd->balance_interval < MAX_PINNED_INTERVAL) || - (sd->balance_interval < sd->max_interval)) + if ((env.flags & LBF_ALL_PINNED && + sd->balance_interval < MAX_PINNED_INTERVAL) || + sd->balance_interval < sd->max_interval) sd->balance_interval *= 2; ld_moved = 0; |