MIPS: Move r2300 FP code from r2300_switch.S to r2300_fpu.S
authorPaul Burton <paul.burton@imgtec.com>
Mon, 5 Jun 2017 18:21:29 +0000 (11:21 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Aug 2017 13:21:51 +0000 (15:21 +0200)
commit423fb0d50890dd48907298e7453faaeb5185b814
tree5a194c1c8074836156a64d08824d0c7d97f73ce9
parenta2aea699b1dde309f189ab41af41fae2d3345783
MIPS: Move r2300 FP code from r2300_switch.S to r2300_fpu.S

Move _save_fp(), _restore_fp() & _init_fpu() out of r2300_switch.S &
into r2300_fpu.S. This logically places all FP-related asm code into
r2300_fpu.S & provides consistency with R4K after the preceding commit.

Besides cleaning up this will be useful for later patches which disable
FP support.

[ralf@linux-mips.org: Fixed build issues reported by Arnd Bergmann
<arnd@arndb.de>]

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16238/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/r2300_fpu.S
arch/mips/kernel/r2300_switch.S