MIPS: OCTEON: Save/Restore wider multiply registers in OCTEON III CPUs
authorDavid Daney <david.daney@cavium.com>
Thu, 15 Jan 2015 13:11:05 +0000 (16:11 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 20 Feb 2015 14:28:29 +0000 (15:28 +0100)
commitac655fb7626ea63b12ee5f449a082c79db6d2f26
tree11f0a5c443773f0e8f42d2029a3b95e3c5ae2230
parent9d6b80faf9a5c47eaf10e9d5d0b6b911e902d21d
MIPS: OCTEON: Save/Restore wider multiply registers in OCTEON III CPUs

The wide multiplier is twice as wide, so we need to save twice as much
state.  Detect the multiplier type (CPU type) at start up and install
model specific handlers.

[aleksey.makarov@auriga.com:
conflict resolution,
support for old compilers]

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Leonid Rosenboim <lrosenboim@caviumnetworks.com>
Signed-off-by: Aleksey Makarov <aleksey.makarov@auriga.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8933/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/setup.c
arch/mips/include/asm/octeon/octeon.h
arch/mips/include/asm/ptrace.h
arch/mips/kernel/octeon_switch.S