]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390: Provide MARCH_HAS_*_FEATURES defines
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 4 Sep 2024 09:39:25 +0000 (11:39 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Sat, 7 Sep 2024 15:12:42 +0000 (17:12 +0200)
commit697b37371f4af8b237f47cd4aa4a2255a273b4ce
treea3ab64c9f422ab18b45662cba7f8105200bded85
parent0147addc4fb72a39448b8873d8acdf3a0f29aa65
s390: Provide MARCH_HAS_*_FEATURES defines

Provide MARCH_HAS_*_FEATURES defines which are supposed to be used
everywhere instead of the CONFIG_HAVE_MARCH_*_FEATURES defines.

Various header files contain code which depend on the
CONFIG_HAVE_MARCH_*_FEATURES defines, allowing for compile time
optimizations. If such code is used within the decompressor wrong code may
be generated (the compiler may generate instructions which are not
available for the minimum architecture level of the decompressor).

Therefore provide a new header file with MARCH_HAS_*_FEATURES defines,
which are only available if __DECOMPRESSOR is not defined. This way code
generation for the kernel image is still optimized depending on
CONFIG_HAVE_MARCH_*_FEATURES, while code generated for the decompressor is
compiled for the minimum architecture level.

Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/march.h [new file with mode: 0644]