MIPS: traps: Add CPU PM callback for trap configuration
authorJames Hogan <james.hogan@imgtec.com>
Tue, 4 Mar 2014 10:20:43 +0000 (10:20 +0000)
committerPaul Burton <paul.burton@imgtec.com>
Fri, 2 May 2014 15:38:59 +0000 (16:38 +0100)
commitae4ce45419f908cf884d3fdc37f5706972068d34
tree2a7968ce0e47cc0a9ce0e52479b510158321af70
parentb1d4c6cac02808b1d4e84d0187dc6014bffd2446
MIPS: traps: Add CPU PM callback for trap configuration

Implement a CPU power management callback for restoring trap related CPU
configuration after CPU power up from a low power state. The following
state is restored:

- Status register
- HWREna register
- Exception vector configuration registers
- Context/XContext register

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
arch/mips/include/asm/mmu_context.h
arch/mips/kernel/traps.c