Skip to content

Commit a1e262f

Browse files
author
Rich Felker
committed
sh: do not perform IPI-based cache flush except on boards that need it
Signed-off-by: Rich Felker <dalias@libc.org>
1 parent b4214e4 commit a1e262f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/sh/mm/cache.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,16 @@ static inline void cacheop_on_each_cpu(void (*func) (void *info), void *info,
4242
{
4343
preempt_disable();
4444

45+
/* Needing IPI for cross-core flush is SHX3-specific. */
46+
#ifdef CONFIG_CPU_SHX3
4547
/*
4648
* It's possible that this gets called early on when IRQs are
4749
* still disabled due to ioremapping by the boot CPU, so don't
4850
* even attempt IPIs unless there are other CPUs online.
4951
*/
5052
if (num_online_cpus() > 1)
5153
smp_call_function(func, info, wait);
54+
#endif
5255

5356
func(info);
5457

0 commit comments

Comments
 (0)