]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
MIPS: Clean up notify_die() usage.
authorDavid Daney <ddaney@caviumnetworks.com>
Tue, 3 Aug 2010 22:44:43 +0000 (15:44 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Aug 2010 12:26:30 +0000 (13:26 +0100)
commit70dc6f045fce6907b5d10377850a78ada6837ffb
treea154fb83733a335df9c0a0b6659e3283fb0a7d4c
parent7281cd22973008a782860e48ed8d85d00204168c
MIPS: Clean up notify_die() usage.

The sixth argument of notify_die() is a signal number, the fifth is a
trap number.

Instead of passing a signal number in a randomly selected argument,
pass it in the sixth.  Extract the exception code from regs and pass
that as the trap number.

Get rid of redundant cast, and remove some gratuitous spaces.

Nobody actually does anything with the signal number or trap number,
but we might as well populate them with sensible values.

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1532/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c