diff options
author | Matt Redfearn <matt.redfearn@imgtec.com> | 2016-12-19 14:20:59 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-01-03 16:34:34 +0100 |
commit | dda45f701c9d7ad4ac0bb446e3a96f6df9a468d9 (patch) | |
tree | 818b1a02bbd1fb07f399053935d5bd51f0ec701c /block/blk-stat.c | |
parent | 510d86362a27577f5ee23f46cfb354ad49731e61 (diff) | |
download | linux-dda45f701c9d7ad4ac0bb446e3a96f6df9a468d9.tar.gz linux-dda45f701c9d7ad4ac0bb446e3a96f6df9a468d9.tar.bz2 linux-dda45f701c9d7ad4ac0bb446e3a96f6df9a468d9.zip |
MIPS: Switch to the irq_stack in interrupts
When enterring interrupt context via handle_int or except_vec_vi, switch
to the irq_stack of the current CPU if it is not already in use.
The current stack pointer is masked with the thread size and compared to
the base or the irq stack. If it does not match then the stack pointer
is set to the top of that stack, otherwise this is a nested irq being
handled on the irq stack so the stack pointer should be left as it was.
The in-use stack pointer is placed in the callee saved register s1. It
will be saved to the stack when plat_irq_dispatch is invoked and can be
restored once control returns here.
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Acked-by: Jason A. Donenfeld <jason@zx2c4.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/14743/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'block/blk-stat.c')
0 files changed, 0 insertions, 0 deletions