hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/arch/powerpc/platforms/powermac/cache.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * This file contains low-level cache management functions
34 * used for sleep and CPU speed changes on Apple machines.
....@@ -6,12 +7,6 @@
67 *
78 * Copyright (C) 2004 Paul Mackerras (paulus@samba.org) and
89 * Benjamin Herrenschmidt (benh@kernel.crashing.org)
9
- *
10
- * This program is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU General Public License
12
- * as published by the Free Software Foundation; either version
13
- * 2 of the License, or (at your option) any later version.
14
- *
1510 */
1611
1712 #include <asm/processor.h>
....@@ -28,7 +23,7 @@
2823 */
2924
3025 _GLOBAL(flush_disable_caches)
31
-#ifndef CONFIG_6xx
26
+#ifndef CONFIG_PPC_BOOK3S_32
3227 blr
3328 #else
3429 BEGIN_FTR_SECTION
....@@ -53,7 +48,7 @@
5348
5449 /* Stop DST streams */
5550 BEGIN_FTR_SECTION
56
- DSSALL
51
+ PPC_DSSALL
5752 sync
5853 END_FTR_SECTION_IFSET(CPU_FTR_ALTIVEC)
5954
....@@ -189,6 +184,7 @@
189184
190185 mtlr r10
191186 blr
187
+_ASM_NOKPROBE_SYMBOL(flush_disable_75x)
192188
193189 /* This code is for 745x processors */
194190 flush_disable_745x:
....@@ -201,7 +197,7 @@
201197 isync
202198
203199 /* Stop prefetch streams */
204
- DSSALL
200
+ PPC_DSSALL
205201 sync
206202
207203 /* Disable L2 prefetching */
....@@ -356,4 +352,5 @@
356352 mtmsr r11 /* restore DR and EE */
357353 isync
358354 blr
359
-#endif /* CONFIG_6xx */
355
+_ASM_NOKPROBE_SYMBOL(flush_disable_745x)
356
+#endif /* CONFIG_PPC_BOOK3S_32 */