.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Based on arch/arm/include/asm/proc-fns.h |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 1997-1999 Russell King |
---|
5 | 6 | * Copyright (C) 2000 Deep Blue Solutions Ltd |
---|
6 | 7 | * Copyright (C) 2012 ARM Ltd. |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License version 2 as |
---|
10 | | - * published by the Free Software Foundation. |
---|
11 | | - * |
---|
12 | | - * This program is distributed in the hope that it will be useful, |
---|
13 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 | | - * GNU General Public License for more details. |
---|
16 | | - * |
---|
17 | | - * You should have received a copy of the GNU General Public License |
---|
18 | | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
19 | 8 | */ |
---|
20 | 9 | #ifndef __ASM_PROCFNS_H |
---|
21 | 10 | #define __ASM_PROCFNS_H |
---|
22 | 11 | |
---|
23 | | -#ifdef __KERNEL__ |
---|
24 | 12 | #ifndef __ASSEMBLY__ |
---|
25 | 13 | |
---|
26 | 14 | #include <asm/page.h> |
---|
27 | 15 | |
---|
28 | | -struct mm_struct; |
---|
29 | 16 | struct cpu_suspend_ctx; |
---|
30 | 17 | |
---|
31 | | -extern void cpu_cache_off(void); |
---|
32 | 18 | extern void cpu_do_idle(void); |
---|
33 | | -extern void cpu_do_switch_mm(unsigned long pgd_phys, struct mm_struct *mm); |
---|
34 | | -extern void cpu_reset(unsigned long addr) __attribute__((noreturn)); |
---|
35 | 19 | extern void cpu_do_suspend(struct cpu_suspend_ctx *ptr); |
---|
36 | 20 | extern u64 cpu_do_resume(phys_addr_t ptr, u64 idmap_ttbr); |
---|
37 | 21 | |
---|
38 | 22 | #include <asm/memory.h> |
---|
39 | 23 | |
---|
40 | 24 | #endif /* __ASSEMBLY__ */ |
---|
41 | | -#endif /* __KERNEL__ */ |
---|
42 | 25 | #endif /* __ASM_PROCFNS_H */ |
---|