forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mm/cache-v7m.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * linux/arch/arm/mm/cache-v7m.S
34 *
....@@ -5,10 +6,6 @@
56 *
67 * Copyright (C) 2001 Deep Blue Solutions Ltd.
78 * Copyright (C) 2005 ARM Ltd.
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License version 2 as
11
- * published by the Free Software Foundation.
129 *
1310 * This is the "shell" of the ARMv7M processor support.
1411 */
....@@ -186,13 +183,13 @@
186183 and r1, r1, #7 @ mask of the bits for current cache only
187184 cmp r1, #2 @ see what cache we have at this level
188185 blt skip @ skip if no cache, or just i-cache
189
-#ifdef CONFIG_PREEMPT
186
+#ifdef CONFIG_PREEMPTION
190187 save_and_disable_irqs_notrace r9 @ make cssr&csidr read atomic
191188 #endif
192189 write_csselr r10, r1 @ set current cache level
193190 isb @ isb to sych the new cssr&csidr
194191 read_ccsidr r1 @ read the new csidr
195
-#ifdef CONFIG_PREEMPT
192
+#ifdef CONFIG_PREEMPTION
196193 restore_irqs_notrace r9
197194 #endif
198195 and r2, r1, #7 @ extract the length of the cache lines