hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/arm/include/asm/cacheflush.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * arch/arm/include/asm/cacheflush.h
34 *
45 * Copyright (C) 1999-2002 Russell King
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107 #ifndef _ASMARM_CACHEFLUSH_H
118 #define _ASMARM_CACHEFLUSH_H
....@@ -261,11 +258,11 @@
261258 #define flush_cache_dup_mm(mm) flush_cache_mm(mm)
262259
263260 /*
264
- * flush_cache_user_range is used when we want to ensure that the
261
+ * flush_icache_user_range is used when we want to ensure that the
265262 * Harvard caches are synchronised for the user space address range.
266263 * This is used for the ARM private sys_cacheflush system call.
267264 */
268
-#define flush_cache_user_range(s,e) __cpuc_coherent_user_range(s,e)
265
+#define flush_icache_user_range(s,e) __cpuc_coherent_user_range(s,e)
269266
270267 /*
271268 * Perform necessary cache operations to ensure that data previously
....@@ -320,9 +317,6 @@
320317
321318 #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&mapping->i_pages)
322319 #define flush_dcache_mmap_unlock(mapping) xa_unlock_irq(&mapping->i_pages)
323
-
324
-#define flush_icache_user_range(vma,page,addr,len) \
325
- flush_dcache_page(page)
326320
327321 /*
328322 * We don't appear to need to do anything here. In fact, if we did, we'd
....@@ -479,4 +473,11 @@
479473 void flush_uprobe_xol_access(struct page *page, unsigned long uaddr,
480474 void *kaddr, unsigned long len);
481475
476
+
477
+#ifdef CONFIG_CPU_ICACHE_MISMATCH_WORKAROUND
478
+void check_cpu_icache_size(int cpuid);
479
+#else
480
+static inline void check_cpu_icache_size(int cpuid) { }
481
+#endif
482
+
482483 #endif