]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Hardcode cpu_has_mmips=1 for microMIPS kernels
authorPaul Burton <paul.burton@mips.com>
Wed, 7 Nov 2018 23:19:41 +0000 (23:19 +0000)
committerPaul Burton <paul.burton@mips.com>
Thu, 8 Nov 2018 18:23:38 +0000 (10:23 -0800)
commitde67c0ba99100eb4fa32b02041210b4100d4e1a4
treeae2b4c23c48f0c046ba9919a8c7461e9f867ba39
parent6994e70ba09e7100beb198865ad9066c9e8e8b13
MIPS: Hardcode cpu_has_mmips=1 for microMIPS kernels

If we built the kernel targeting the microMIPS ISA then the very fact
that the kernel is running implies that the CPU supports microMIPS. Thus
we can hardcode cpu_has_mmips to 1 allowing the compiler greater scope
for optimisation due to the compile-time constant.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/21022/
Cc: linux-mips@linux-mips.org
arch/mips/include/asm/cpu-features.h