MIPS: adding a safety check for cpu_has_fpu
authorShida Zhang <zhangshida@kylinos.cn>
Mon, 2 May 2022 03:20:02 +0000 (11:20 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 4 May 2022 20:26:02 +0000 (22:26 +0200)
commit912a4427bec0e423c45dcf2afda079c22f505237
tree020ae2f4ac2e88bc4d0bf13c7533b8423d4a6c31
parentd0ab32b0f0c14173591dc5996ddbd90fb9375f7c
MIPS: adding a safety check for cpu_has_fpu

There is a chance 'cpu_has_fpu' would still be overridden when the
CONFIG_MIPS_FP_SUPPORT configuration option has been disabled. So
add a safety check for 'cpu_has_fpu'.

Suggested-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Shida Zhang <zhangshida@kylinos.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/cpu-features.h