OSDN Git Service

MIPS: bitops: Use MIPS_ISA_REV, not #ifdefs
authorPaul Burton <paul.burton@mips.com>
Tue, 1 Oct 2019 21:53:27 +0000 (21:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 16:42:41 +0000 (09:42 -0700)
commit59361e9975fd567a642f4ee32fd0ea662ffa7040
tree5e9503bbcb8d004cf772ded3c41386a0b391ae95
parent3d2920cf4fd41a27730083ef395a0c49d4750474
MIPS: bitops: Use MIPS_ISA_REV, not #ifdefs

Rather than #ifdef on CONFIG_CPU_* to determine whether the ins
instruction is supported we can simply check MIPS_ISA_REV to discover
whether we're targeting MIPSr2 or higher. Do so in order to clean up the
code.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-kernel@vger.kernel.org
arch/mips/include/asm/bitops.h