Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181089
b: refs/heads/master
c: a6198a2
h: refs/heads/master
i:
  181087: ccde265
v: v3
  • Loading branch information
Paul Mundt committed Jan 15, 2010
1 parent 5688923 commit 0b10801
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a09d2831b3457a92a58d67bddfed370516acfe28
refs/heads/master: a6198a238baceae9d4e0ce3915f6d239c89b5c08
13 changes: 11 additions & 2 deletions trunk/arch/sh/mm/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* arch/sh/mm/cache.c
*
* Copyright (C) 1999, 2000, 2002 Niibe Yutaka
* Copyright (C) 2002 - 2009 Paul Mundt
* Copyright (C) 2002 - 2010 Paul Mundt
*
* Released under the terms of the GNU GPL v2.0.
*/
Expand Down Expand Up @@ -41,8 +41,17 @@ static inline void cacheop_on_each_cpu(void (*func) (void *info), void *info,
int wait)
{
preempt_disable();
smp_call_function(func, info, wait);

/*
* It's possible that this gets called early on when IRQs are
* still disabled due to ioremapping by the boot CPU, so don't
* even attempt IPIs unless there are other CPUs online.
*/
if (num_online_cpus() > 1)
smp_call_function(func, info, wait);

func(info);

preempt_enable();
}

Expand Down

0 comments on commit 0b10801

Please sign in to comment.