Now that we have all the infrastructure in place and ready to support timekeeping duty balanced across every non full dynticks CPUs, we can hereby extend the timekeeping duty affinity.
Signed-off-by: Frederic Weisbecker <fweis...@gmail.com> Cc: Thomas Gleixner <t...@linutronix.de> Cc: Ingo Molnar <mi...@kernel.org> Cc: Peter Zijlstra <pet...@infradead.org> Cc: Steven Rostedt <rost...@goodmis.org> Cc: Paul E. McKenney <paul...@linux.vnet.ibm.com> Cc: John Stultz <john.stu...@linaro.org> Cc: Alex Shi <alex....@linaro.org> Cc: Kevin Hilman <khil...@linaro.org> --- include/linux/tick.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/include/linux/tick.h b/include/linux/tick.h index bd3c32e..07c02e8 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h @@ -203,15 +203,7 @@ static inline int tick_timekeeping_default_cpu(void) */ static inline bool tick_timekeeping_cpu(int cpu) { - /* - * If there are full dynticks CPUs around, - * CPU 0 must stay periodic to update timekeeping. - */ - if (tick_nohz_full_enabled()) - return cpu == 0; - - /* Otherwise any CPU is elligible for timekeeping duty */ - return true; + return !tick_nohz_full_cpu(cpu); } extern void tick_nohz_init(void); -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/