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)
commit36a498035bd2e5169bbceed1e3b0c8bb0ce5a7b4
treea56b00865d9ec4048c50dcc0aefbbc26d1bc155e
parentea6a37373f9aca4ecb98ea3a298fda57177ee6a5
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