]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Avoid FCSR sanitization when CONFIG_MIPS_FP_SUPPORT=n
authorPaul Burton <paul.burton@mips.com>
Wed, 7 Nov 2018 23:14:09 +0000 (23:14 +0000)
committerPaul Burton <paul.burton@mips.com>
Fri, 9 Nov 2018 18:23:18 +0000 (10:23 -0800)
commitd38d6008cae448b1e2f267476114138db2a5c3bd
treea56b00865d9ec4048c50dcc0aefbbc26d1bc155e
parent89888d46f26a8dedc755251b50e2b84644677e5d
MIPS: Avoid FCSR sanitization when CONFIG_MIPS_FP_SUPPORT=n

When CONFIG_MIPS_FP_SUPPORT=n we don't support floating point, so we
don't need to worry about floating point exceptions pending in the
Floating point Control & Status Register (FCSR) during switch_to(). Stub
out the __sanitize_fcr31() macro in this case.

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