Linux 3.17-rc2
[linux/fpc-iii.git] / arch / arm64 / include / asm / suspend.h
blobe9c149c042e09703c864ef7c6101602134676678
1 #ifndef __ASM_SUSPEND_H
2 #define __ASM_SUSPEND_H
4 #define NR_CTX_REGS 11
6 /*
7 * struct cpu_suspend_ctx must be 16-byte aligned since it is allocated on
8 * the stack, which must be 16-byte aligned on v8
9 */
10 struct cpu_suspend_ctx {
12 * This struct must be kept in sync with
13 * cpu_do_{suspend/resume} in mm/proc.S
15 u64 ctx_regs[NR_CTX_REGS];
16 u64 sp;
17 } __aligned(16);
19 struct sleep_save_sp {
20 phys_addr_t *save_ptr_stash;
21 phys_addr_t save_ptr_stash_phys;
24 extern void cpu_resume(void);
25 extern int cpu_suspend(unsigned long);
27 #endif