hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/include/asm/current.h
....@@ -1,12 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 #ifndef _ASM_POWERPC_CURRENT_H
23 #define _ASM_POWERPC_CURRENT_H
34 #ifdef __KERNEL__
45
56 /*
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the License, or (at your option) any later version.
107 */
118
129 struct task_struct;
....@@ -19,7 +16,8 @@
1916 {
2017 struct task_struct *task;
2118
22
- __asm__ __volatile__("ld %0,%1(13)"
19
+ /* get_current can be cached by the compiler, so no volatile */
20
+ asm ("ld %0,%1(13)"
2321 : "=r" (task)
2422 : "i" (offsetof(struct paca_struct, __current)));
2523