hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/powerpc/kernel/idle_e500.S
....@@ -1,13 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (C) 2008 Freescale Semiconductor, Inc. All rights reserved.
34 * Dave Liu <daveliu@freescale.com>
45 * copy from idle_6xx.S and modify for e500 based processor,
56 * implement the power_save function in idle.
6
- *
7
- * This program is free software; you can redistribute it and/or
8
- * modify it under the terms of the GNU General Public License
9
- * as published by the Free Software Foundation; either version
10
- * 2 of the License, or (at your option) any later version.
117 */
128
139 #include <linux/threads.h>
....@@ -22,10 +18,9 @@
2218 .text
2319
2420 _GLOBAL(e500_idle)
25
- CURRENT_THREAD_INFO(r3, r1)
26
- lwz r4,TI_LOCAL_FLAGS(r3) /* set napping bit */
21
+ lwz r4,TI_LOCAL_FLAGS(r2) /* set napping bit */
2722 ori r4,r4,_TLF_NAPPING /* so when we take an exception */
28
- stw r4,TI_LOCAL_FLAGS(r3) /* it will return to our caller */
23
+ stw r4,TI_LOCAL_FLAGS(r2) /* it will return to our caller */
2924
3025 #ifdef CONFIG_PPC_E500MC
3126 wrteei 1
....@@ -88,11 +83,11 @@
8883 stw r9,_NIP(r11) /* make it do a blr */
8984
9085 #ifdef CONFIG_SMP
91
- CURRENT_THREAD_INFO(r12, r1)
92
- lwz r11,TI_CPU(r12) /* get cpu number * 4 */
86
+ lwz r11,TASK_CPU(r2) /* get cpu number * 4 */
9387 slwi r11,r11,2
9488 #else
9589 li r11,0
9690 #endif
9791
9892 b transfer_to_handler_cont
93
+_ASM_NOKPROBE_SYMBOL(power_save_ppc32_restore)