diff options
author | Rich Felker <dalias@libc.org> | 2016-02-15 18:36:33 +0000 |
---|---|---|
committer | Rich Felker <dalias@libc.org> | 2016-08-05 03:29:40 +0000 |
commit | a1e262f6f126466f51d6955fb5bd6aaf0aacf68f (patch) | |
tree | c03511d896afb2d09b445766b9605f358514e7fe | |
parent | b4214e41b7152b1964a3421a40251d202ae2d2c0 (diff) | |
download | linux-rpi3-a1e262f6f126466f51d6955fb5bd6aaf0aacf68f.tar.gz linux-rpi3-a1e262f6f126466f51d6955fb5bd6aaf0aacf68f.tar.bz2 linux-rpi3-a1e262f6f126466f51d6955fb5bd6aaf0aacf68f.zip |
sh: do not perform IPI-based cache flush except on boards that need it
Signed-off-by: Rich Felker <dalias@libc.org>
-rw-r--r-- | arch/sh/mm/cache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sh/mm/cache.c b/arch/sh/mm/cache.c index 70cc52f2fab8..36554a9ea99b 100644 --- a/arch/sh/mm/cache.c +++ b/arch/sh/mm/cache.c @@ -42,6 +42,8 @@ static inline void cacheop_on_each_cpu(void (*func) (void *info), void *info, { preempt_disable(); + /* Needing IPI for cross-core flush is SHX3-specific. */ +#ifdef CONFIG_CPU_SHX3 /* * It's possible that this gets called early on when IRQs are * still disabled due to ioremapping by the boot CPU, so don't @@ -49,6 +51,7 @@ static inline void cacheop_on_each_cpu(void (*func) (void *info), void *info, */ if (num_online_cpus() > 1) smp_call_function(func, info, wait); +#endif func(info); |