| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * arch/arm/include/asm/cacheflush.h |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | #ifndef _ASMARM_CACHEFLUSH_H |
|---|
| 11 | 8 | #define _ASMARM_CACHEFLUSH_H |
|---|
| .. | .. |
|---|
| 261 | 258 | #define flush_cache_dup_mm(mm) flush_cache_mm(mm) |
|---|
| 262 | 259 | |
|---|
| 263 | 260 | /* |
|---|
| 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 |
|---|
| 265 | 262 | * Harvard caches are synchronised for the user space address range. |
|---|
| 266 | 263 | * This is used for the ARM private sys_cacheflush system call. |
|---|
| 267 | 264 | */ |
|---|
| 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) |
|---|
| 269 | 266 | |
|---|
| 270 | 267 | /* |
|---|
| 271 | 268 | * Perform necessary cache operations to ensure that data previously |
|---|
| .. | .. |
|---|
| 320 | 317 | |
|---|
| 321 | 318 | #define flush_dcache_mmap_lock(mapping) xa_lock_irq(&mapping->i_pages) |
|---|
| 322 | 319 | #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) |
|---|
| 326 | 320 | |
|---|
| 327 | 321 | /* |
|---|
| 328 | 322 | * We don't appear to need to do anything here. In fact, if we did, we'd |
|---|
| .. | .. |
|---|
| 479 | 473 | void flush_uprobe_xol_access(struct page *page, unsigned long uaddr, |
|---|
| 480 | 474 | void *kaddr, unsigned long len); |
|---|
| 481 | 475 | |
|---|
| 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 | + |
|---|
| 482 | 483 | #endif |
|---|