]> git.karo-electronics.de Git - linux-beck.git/commit
MIPS: Move cop2 save/restore to switch_to()
authorJayachandran C <jchandra@broadcom.com>
Mon, 10 Jun 2013 06:30:00 +0000 (06:30 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 13 Jun 2013 15:46:41 +0000 (17:46 +0200)
commit2c952e06e4f57716109b609956eda28c900faac0
tree39dc9361773009cdcfdc1e0e1752b446259d7cef
parent79f8511c83f13689913f54d2f189297c226ec064
MIPS: Move cop2 save/restore to switch_to()

Move the common code for saving and restoring platform specific COP2
registers to switch_to(). This will make supporting new platforms (like
Netlogic XLP) easier.

The platform specific COP2 definitions are to be specified in
asm/processor.h and in asm/cop2.h.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Cc: ddaney.cavm@gmail.com
Patchwork: https://patchwork.linux-mips.org/patch/5411/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cop2.h
arch/mips/include/asm/processor.h
arch/mips/include/asm/switch_to.h
arch/mips/kernel/octeon_switch.S