Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33735
b: refs/heads/master
c: 467c378
h: refs/heads/master
i:
  33733: 81e80c7
  33731: 75b4931
  33727: 651b23d
v: v3
  • Loading branch information
Paul Mackerras committed Aug 30, 2006
1 parent 0f4ef25 commit 2d5744d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 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: e0d872d536bb93335d5905b09fe374a163486d43
refs/heads/master: 467c37801c453849a2fe243c3226476ee3985868
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/kernel/smp-tbsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ void __devinit smp_generic_take_timebase(void)
{
int cmd;
u64 tb;
unsigned long flags;

local_irq_disable();
local_irq_save(flags);
while (!running)
barrier();
rmb();
Expand All @@ -70,7 +71,7 @@ void __devinit smp_generic_take_timebase(void)
set_tb(tb >> 32, tb & 0xfffffffful);
enter_contest(tbsync->mark, -1);
}
local_irq_enable();
local_irq_restore(flags);
}

static int __devinit start_contest(int cmd, long offset, int num)
Expand Down
7 changes: 4 additions & 3 deletions trunk/arch/ppc/kernel/smp-tbsync.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ void __devinit
smp_generic_take_timebase( void )
{
int cmd, tbl, tbu;
unsigned long flags;

local_irq_disable();
local_irq_save(flags);
while( !running )
;
rmb();
Expand All @@ -64,7 +65,7 @@ smp_generic_take_timebase( void )
tbu = tbsync->tbu;
tbsync->ack = 0;
if( cmd == kExit )
return;
break;

if( cmd == kSetAndTest ) {
while( tbsync->handshake )
Expand All @@ -77,7 +78,7 @@ smp_generic_take_timebase( void )
}
enter_contest( tbsync->mark, -1 );
}
local_irq_enable();
local_irq_restore(flags);
}

static int __devinit
Expand Down

0 comments on commit 2d5744d

Please sign in to comment.