MIPS: Hardcode cpu_has_mips* where target ISA allows
authorPaul Burton <paul.burton@mips.com>
Mon, 26 Nov 2018 18:58:40 +0000 (18:58 +0000)
committerPaul Burton <paul.burton@mips.com>
Tue, 27 Nov 2018 06:49:20 +0000 (22:49 -0800)
commit1aeba347b3a90a8b22f1c3eed0dcfba38bb8dbb8
tree83491b85b7a0b5b81dd483fa2a58886c3f19bdce
parentf08153186ca5023c1672aa6417ee4fc748ac5901
MIPS: Hardcode cpu_has_mips* where target ISA allows

In the same vein as commit 93e01942a6eb ("MIPS: Hardcode cpu_has_* where
known at compile time due to ISA"), we can use our knowledge of the ISA
being targeted by the kernel build to make cpu_has_mips* macros
compile-time constant in some cases. This allows the compiler greater
opportunity to optimize out code which will never execute.

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