hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/powerpc/sysdev/6xx-suspend.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Enter and leave sleep state on chips with 6xx-style HID0
34 * power management bits, which don't leave sleep state via reset.
....@@ -5,10 +6,6 @@
56 * Author: Scott Wood <scottwood@freescale.com>
67 *
78 * 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.
129 */
1310
1411 #include <asm/ppc_asm.h>
....@@ -29,10 +26,9 @@
2926 ori r5, r5, ret_from_standby@l
3027 mtlr r5
3128
32
- CURRENT_THREAD_INFO(r5, r1)
33
- lwz r6, TI_LOCAL_FLAGS(r5)
29
+ lwz r6, TI_LOCAL_FLAGS(r2)
3430 ori r6, r6, _TLF_SLEEPING
35
- stw r6, TI_LOCAL_FLAGS(r5)
31
+ stw r6, TI_LOCAL_FLAGS(r2)
3632
3733 mfmsr r5
3834 ori r5, r5, MSR_EE