nohz: Consolidate nohz full init code
authorFrederic Weisbecker <fweisbec@gmail.com>
Sun, 17 Aug 2014 20:02:55 +0000 (22:02 +0200)
committerFrederic Weisbecker <fweisbec@gmail.com>
Sat, 13 Sep 2014 16:46:40 +0000 (18:46 +0200)
commit4327b15f64b2580dad40d2674d50fc44f1b699c1
tree285a82c39893f06ad9a2e705db492e792e583ed4
parent3631073659d0aafeaa52227bb61a100efaf901dc
nohz: Consolidate nohz full init code

The supports for CONFIG_NO_HZ_FULL_ALL=y and the nohz_full= kernel
parameter both have their own way to do the same thing: allocate
full dynticks cpumasks, fill them and initialize some state variables.

Lets consolidate that all in the same place.

While at it, convert some regular printk message to warnings when
fundamental allocations fail.

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>
kernel/time/tick-sched.c