| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2012 Freescale Semiconductor, Inc. |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or |
|---|
| 5 | | - * modify it under the terms of the GNU General Public License |
|---|
| 6 | | - * as published by the Free Software Foundation; either version |
|---|
| 7 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 8 | 4 | */ |
|---|
| 9 | 5 | |
|---|
| 10 | 6 | #include <linux/threads.h> |
|---|
| .. | .. |
|---|
| 21 | 17 | #ifndef CONFIG_PPC64 |
|---|
| 22 | 18 | /* epapr_ev_idle() was derived from e500_idle() */ |
|---|
| 23 | 19 | _GLOBAL(epapr_ev_idle) |
|---|
| 24 | | - CURRENT_THREAD_INFO(r3, r1) |
|---|
| 25 | | - PPC_LL r4, TI_LOCAL_FLAGS(r3) /* set napping bit */ |
|---|
| 20 | + PPC_LL r4, TI_LOCAL_FLAGS(r2) /* set napping bit */ |
|---|
| 26 | 21 | ori r4, r4,_TLF_NAPPING /* so when we take an exception */ |
|---|
| 27 | | - PPC_STL r4, TI_LOCAL_FLAGS(r3) /* it will return to our caller */ |
|---|
| 22 | + PPC_STL r4, TI_LOCAL_FLAGS(r2) /* it will return to our caller */ |
|---|
| 28 | 23 | |
|---|
| 29 | 24 | wrteei 1 |
|---|
| 30 | 25 | |
|---|