linux/arch/um/include/shared
Frederic Weisbecker 3451d0243c nohz: Rename CONFIG_NO_HZ to CONFIG_NO_HZ_COMMON
We are planning to convert the dynticks Kconfig options layout
into a choice menu. The user must be able to easily pick
any of the following implementations: constant periodic tick,
idle dynticks, full dynticks.

As this implies a mutual exclusion, the two dynticks implementions
need to converge on the selection of a common Kconfig option in order
to ease the sharing of a common infrastructure.

It would thus seem pretty natural to reuse CONFIG_NO_HZ to
that end. It already implements all the idle dynticks code
and the full dynticks depends on all that code for now.
So ideally the choice menu would propose CONFIG_NO_HZ_IDLE and
CONFIG_NO_HZ_EXTENDED then both would select CONFIG_NO_HZ.

On the other hand we want to stay backward compatible: if
CONFIG_NO_HZ is set in an older config file, we want to
enable CONFIG_NO_HZ_IDLE by default.

But we can't afford both at the same time or we run into
a circular dependency:

1) CONFIG_NO_HZ_IDLE and CONFIG_NO_HZ_EXTENDED both select
   CONFIG_NO_HZ
2) If CONFIG_NO_HZ is set, we default to CONFIG_NO_HZ_IDLE

We might be able to support that from Kconfig/Kbuild but it
may not be wise to introduce such a confusing behaviour.

So to solve this, create a new CONFIG_NO_HZ_COMMON option
which gathers the common code between idle and full dynticks
(that common code for now is simply the idle dynticks code)
and select it from their referring Kconfig.

Then we'll later create CONFIG_NO_HZ_IDLE and map CONFIG_NO_HZ
to it for backward compatibility.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Geoff Levand <geoff@infradead.org>
Cc: Gilad Ben Yossef <gilad@benyossef.com>
Cc: Hakan Akkan <hakanakkan@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Kevin Hilman <khilman@linaro.org>
Cc: Li Zhong <zhong@linux.vnet.ibm.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
2013-04-03 13:56:03 +02:00
..
skas um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
aio.h x86, um: take arch/um/include/* out of the way 2008-10-22 22:55:19 -07:00
arch.h um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
as-layout.h um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
common-offsets.h nohz: Rename CONFIG_NO_HZ to CONFIG_NO_HZ_COMMON 2013-04-03 13:56:03 +02:00
elf_user.h x86, um: take arch/um/include/* out of the way 2008-10-22 22:55:19 -07:00
frame_kern.h most of set_current_blocked() callers want SIGKILL/SIGSTOP removed from set 2012-06-01 12:58:51 -04:00
init.h fbdev: move logo externs to header file 2009-06-16 19:47:57 -07:00
irq_kern.h um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
irq_user.h um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
kern.h um: trim kern.h 2011-11-02 14:15:07 +01:00
kern_util.h um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
longjmp.h um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
mem.h x86, um: take arch/um/include/* out of the way 2008-10-22 22:55:19 -07:00
mem_user.h x86, um: take arch/um/include/* out of the way 2008-10-22 22:55:19 -07:00
net_kern.h um: net: use eth_hw_addr_random() to generate random mac 2013-01-03 22:37:36 -08:00
net_user.h uml: UML net driver does not allow for vlans 2009-06-16 19:47:46 -07:00
os.h Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal 2012-10-13 10:05:52 +09:00
ptrace_user.h um: unify ptrace_user.h 2011-11-02 14:15:27 +01:00
registers.h um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
sigio.h x86, um: take arch/um/include/* out of the way 2008-10-22 22:55:19 -07:00
skas_ptrace.h um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
um_malloc.h um: get rid of kern_constants.h 2011-11-02 14:14:45 +01:00
user.h um: Preinclude include/linux/kern_levels.h 2012-09-27 20:20:09 +02:00