]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitffc3a680a17fec04fd23e16a2cd0925a7ddb8f93
tree020ae2f4ac2e88bc4d0bf13c7533b8423d4a6c31
parenta0b55c81437c3b4ab34efdfff54060a0f38698ff
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