Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14502
b: refs/heads/master
c: 54c4e6b
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mackerras committed Nov 19, 2005
1 parent 516006f commit 6204e86
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 0212ddd839470f7a54cccccbaecd4833b4123da2
refs/heads/master: 54c4e6b5fee0347ab81e2c2fe4239c455c3422ae
6 changes: 4 additions & 2 deletions trunk/arch/powerpc/platforms/powermac/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <linux/errno.h>
#include <linux/hardirq.h>
#include <linux/cpu.h>
#include <linux/compiler.h>

#include <asm/ptrace.h>
#include <asm/atomic.h>
Expand Down Expand Up @@ -631,8 +632,9 @@ void smp_core99_give_timebase(void)
mb();

/* wait for the secondary to have taken it */
for (t = 100000; t > 0 && sec_tb_reset; --t)
udelay(10);
/* note: can't use udelay here, since it needs the timebase running */
for (t = 10000000; t > 0 && sec_tb_reset; --t)
barrier();
if (sec_tb_reset)
/* XXX BUG_ON here? */
printk(KERN_WARNING "Timeout waiting sync(2) on second CPU\n");
Expand Down

0 comments on commit 6204e86

Please sign in to comment.