MIPS: Allow kernel to use coprocessor 2
authorJayachandran C <jchandra@broadcom.com>
Mon, 10 Jun 2013 06:30:01 +0000 (06:30 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 13 Jun 2013 15:46:41 +0000 (17:46 +0200)
commit83bee792d7cb20d250be57e99d97f8cc83d9b4d5
tree4966fbdabeaae68ff9ca921ebc5bdd71072e383e
parent2c952e06e4f57716109b609956eda28c900faac0
MIPS: Allow kernel to use coprocessor 2

Kernel threads should be able to use COP2 if the platform needs it.
Do not call die_if_kernel() for a coprocessor unusable exception if
the exception due to COP2 usage.  Instead, the default notifier for
COP2 exceptions is updated to call die_if_kernel.

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/5415/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c