s390/Kconfig: add HAVE_MARCH_[ARCH]_FEATURES Kconfig symbols
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 14 May 2012 08:12:41 +0000 (10:12 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 16 May 2012 12:42:43 +0000 (14:42 +0200)
commit0544516956c0b949e3190f744df4b473f5ad4853
tree68c07cd44744ce769f42bbeaa7856c9336d6c417
parent9ee39e4b840d54f0127cd4ef607da79469917888
s390/Kconfig: add HAVE_MARCH_[ARCH]_FEATURES Kconfig symbols

Add HAVE_MARCH_[ARCH]_FEATURES Kconfig symbols. Whenever there is code that
needs an instruction that is only present beginning with a hardware generation
the #ifdef chain can become quite long.
To avoid this add the new Kconfig symbols which are selected if the kernel
gets compiled for at least the specified symbol.
If for example the kernel gets compiled for z196 this means that also all
symbols for all previous architure features are set.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/Kconfig