nohz: Move nohz full init call to tick init
authorFrederic Weisbecker <fweisbec@gmail.com>
Sat, 16 Aug 2014 15:47:18 +0000 (17:47 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sat, 13 Sep 2014 16:34:44 +0000 (18:34 +0200)
commita80e49e2cc3145af014a8ae44f575829cc236192
tree61ee13c12752cf1e7f4f2aa9ecbcce9838f6817e
parent2ce7598c9a453e0acd0e07be7be3f5eb39608ebd
nohz: Move nohz full init call to tick init

This way we unbloat a bit main.c and more importantly we initialize
nohz full after init_IRQ(). This dependency will be needed in further
patches because nohz full needs irq work to raise its own IRQ.
Information about the support for this ability on ARM64 is obtained on
init_IRQ() which initialize the pointer to __smp_call_function.

Since tick_init() is called right after init_IRQ(), this is a good place
to call tick_nohz_init() and prepare for that dependency.

Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
include/linux/tick.h
init/main.c
kernel/time/tick-common.c
kernel/time/tick-internal.h