David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Based on arch/arm/include/asm/proc-fns.h |
| 4 | * |
| 5 | * Copyright (C) 1997-1999 Russell King |
| 6 | * Copyright (C) 2000 Deep Blue Solutions Ltd |
| 7 | * Copyright (C) 2012 ARM Ltd. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 8 | */ |
| 9 | #ifndef __ASM_PROCFNS_H |
| 10 | #define __ASM_PROCFNS_H |
| 11 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 12 | #ifndef __ASSEMBLY__ |
| 13 | |
| 14 | #include <asm/page.h> |
| 15 | |
| 16 | struct mm_struct; |
| 17 | struct cpu_suspend_ctx; |
| 18 | |
| 19 | extern void cpu_do_idle(void); |
| 20 | extern void cpu_do_switch_mm(unsigned long pgd_phys, struct mm_struct *mm); |
| 21 | extern void cpu_do_suspend(struct cpu_suspend_ctx *ptr); |
| 22 | extern u64 cpu_do_resume(phys_addr_t ptr, u64 idmap_ttbr); |
| 23 | |
| 24 | #include <asm/memory.h> |
| 25 | |
| 26 | #endif /* __ASSEMBLY__ */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 27 | #endif /* __ASM_PROCFNS_H */ |