diff options
author | Peter Zijlstra <peterz@infradead.org> | 2018-02-20 04:59:45 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-03-09 01:59:24 -0500 |
commit | dd707247ababb685ac4b8b2c6a7bf2923725e6ac (patch) | |
tree | afa448d57a98d7d008bc67289b904d24a2f5e38b | |
parent | af3fe03c562055bc3c116eabe73f141ae31bf234 (diff) |
sched/nohz: Merge CONFIG_NO_HZ_COMMON blocks
Now that we have two back-to-back NO_HZ_COMMON blocks, merge them.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | kernel/sched/fair.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 0da79d8a6a2c..d6767f533029 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -9487,11 +9487,7 @@ out: | |||
9487 | */ | 9487 | */ |
9488 | WRITE_ONCE(nohz.has_blocked, 1); | 9488 | WRITE_ONCE(nohz.has_blocked, 1); |
9489 | } | 9489 | } |
9490 | #else | ||
9491 | static inline void nohz_balancer_kick(struct rq *rq) { } | ||
9492 | #endif | ||
9493 | 9490 | ||
9494 | #ifdef CONFIG_NO_HZ_COMMON | ||
9495 | /* | 9491 | /* |
9496 | * In CONFIG_NO_HZ_COMMON case, the idle balance kickee will do the | 9492 | * In CONFIG_NO_HZ_COMMON case, the idle balance kickee will do the |
9497 | * rebalancing for all the CPUs for whom scheduler ticks are stopped. | 9493 | * rebalancing for all the CPUs for whom scheduler ticks are stopped. |
@@ -9598,12 +9594,14 @@ abort: | |||
9598 | 9594 | ||
9599 | return true; | 9595 | return true; |
9600 | } | 9596 | } |
9601 | #else | 9597 | #else /* !CONFIG_NO_HZ_COMMON */ |
9598 | static inline void nohz_balancer_kick(struct rq *rq) { } | ||
9599 | |||
9602 | static bool nohz_idle_balance(struct rq *this_rq, enum cpu_idle_type idle) | 9600 | static bool nohz_idle_balance(struct rq *this_rq, enum cpu_idle_type idle) |
9603 | { | 9601 | { |
9604 | return false; | 9602 | return false; |
9605 | } | 9603 | } |
9606 | #endif | 9604 | #endif /* CONFIG_NO_HZ_COMMON */ |
9607 | 9605 | ||
9608 | /* | 9606 | /* |
9609 | * run_rebalance_domains is triggered when needed from the scheduler tick. | 9607 | * run_rebalance_domains is triggered when needed from the scheduler tick. |