]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: PM: Implement PM helper macros
authorJames Hogan <james.hogan@imgtec.com>
Tue, 4 Mar 2014 10:25:45 +0000 (10:25 +0000)
committerPaul Burton <paul.burton@imgtec.com>
Fri, 2 May 2014 15:39:10 +0000 (16:39 +0100)
commit7dbdb063fa163f129c8ad6e7d4afcf108f6ddcf1
tree255cb7709b6123938c057f206522f00e2b450d9f
parentb0dd91b0e99beb27893b90a27c6b14f5ea5ad8a2
MIPS: PM: Implement PM helper macros

Implement assembler helper macros in asm/pm.h for platform code to use
for saving context across low power states - for example suspend to RAM
or powered down cpuidle states. Macros are provided for saving and
restoring the main CPU context used by C code and doing important
configuration which must be done very early during resume. Notably EVA
needs segmentation control registers to be restored before the stack or
dynamically allocated memory is accessed, so that state is saved in
global data.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
arch/mips/include/asm/pm.h [new file with mode: 0644]
arch/mips/kernel/asm-offsets.c
arch/mips/kernel/pm.c