.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2008 Freescale Semiconductor, Inc. All rights reserved. |
---|
3 | 4 | * Dave Liu <daveliu@freescale.com> |
---|
4 | 5 | * copy from idle_6xx.S and modify for e500 based processor, |
---|
5 | 6 | * 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. |
---|
11 | 7 | */ |
---|
12 | 8 | |
---|
13 | 9 | #include <linux/threads.h> |
---|
.. | .. |
---|
22 | 18 | .text |
---|
23 | 19 | |
---|
24 | 20 | _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 */ |
---|
27 | 22 | 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 */ |
---|
29 | 24 | |
---|
30 | 25 | #ifdef CONFIG_PPC_E500MC |
---|
31 | 26 | wrteei 1 |
---|
.. | .. |
---|
88 | 83 | stw r9,_NIP(r11) /* make it do a blr */ |
---|
89 | 84 | |
---|
90 | 85 | #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 */ |
---|
93 | 87 | slwi r11,r11,2 |
---|
94 | 88 | #else |
---|
95 | 89 | li r11,0 |
---|
96 | 90 | #endif |
---|
97 | 91 | |
---|
98 | 92 | b transfer_to_handler_cont |
---|
| 93 | +_ASM_NOKPROBE_SYMBOL(power_save_ppc32_restore) |
---|