hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm64/include/asm/proc-fns.h
....@@ -1,42 +1,25 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Based on arch/arm/include/asm/proc-fns.h
34 *
45 * Copyright (C) 1997-1999 Russell King
56 * Copyright (C) 2000 Deep Blue Solutions Ltd
67 * 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/>.
198 */
209 #ifndef __ASM_PROCFNS_H
2110 #define __ASM_PROCFNS_H
2211
23
-#ifdef __KERNEL__
2412 #ifndef __ASSEMBLY__
2513
2614 #include <asm/page.h>
2715
28
-struct mm_struct;
2916 struct cpu_suspend_ctx;
3017
31
-extern void cpu_cache_off(void);
3218 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));
3519 extern void cpu_do_suspend(struct cpu_suspend_ctx *ptr);
3620 extern u64 cpu_do_resume(phys_addr_t ptr, u64 idmap_ttbr);
3721
3822 #include <asm/memory.h>
3923
4024 #endif /* __ASSEMBLY__ */
41
-#endif /* __KERNEL__ */
4225 #endif /* __ASM_PROCFNS_H */