| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Enter and leave sleep state on chips with 6xx-style HID0 |
|---|
| 3 | 4 | * power management bits, which don't leave sleep state via reset. |
|---|
| .. | .. |
|---|
| 5 | 6 | * Author: Scott Wood <scottwood@freescale.com> |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Copyright (c) 2006-2007 Freescale Semiconductor, Inc. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 10 | | - * under the terms of the GNU General Public License version 2 as published |
|---|
| 11 | | - * by the Free Software Foundation. |
|---|
| 12 | 9 | */ |
|---|
| 13 | 10 | |
|---|
| 14 | 11 | #include <asm/ppc_asm.h> |
|---|
| .. | .. |
|---|
| 29 | 26 | ori r5, r5, ret_from_standby@l |
|---|
| 30 | 27 | mtlr r5 |
|---|
| 31 | 28 | |
|---|
| 32 | | - CURRENT_THREAD_INFO(r5, r1) |
|---|
| 33 | | - lwz r6, TI_LOCAL_FLAGS(r5) |
|---|
| 29 | + lwz r6, TI_LOCAL_FLAGS(r2) |
|---|
| 34 | 30 | ori r6, r6, _TLF_SLEEPING |
|---|
| 35 | | - stw r6, TI_LOCAL_FLAGS(r5) |
|---|
| 31 | + stw r6, TI_LOCAL_FLAGS(r2) |
|---|
| 36 | 32 | |
|---|
| 37 | 33 | mfmsr r5 |
|---|
| 38 | 34 | ori r5, r5, MSR_EE |
|---|