mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
sh: do not perform IPI-based cache flush except on boards that need it
Signed-off-by: Rich Felker <dalias@libc.org>
This commit is contained in:
parent
b4214e41b7
commit
a1e262f6f1
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,8 @@ static inline void cacheop_on_each_cpu(void (*func) (void *info), void *info,
|
||||||
{
|
{
|
||||||
preempt_disable();
|
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
|
* It's possible that this gets called early on when IRQs are
|
||||||
* still disabled due to ioremapping by the boot CPU, so don't
|
* 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)
|
if (num_online_cpus() > 1)
|
||||||
smp_call_function(func, info, wait);
|
smp_call_function(func, info, wait);
|
||||||
|
#endif
|
||||||
|
|
||||||
func(info);
|
func(info);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue