Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334187
b: refs/heads/master
c: 807607f
h: refs/heads/master
i:
  334185: c2ee30c
  334183: 50299f5
v: v3
  • Loading branch information
Will Deacon authored and Jonas Bonn committed Sep 1, 2012
1 parent 6507a8b commit 3b4de37
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 439164663e5d1753360ff84ea4d5c598459e5d50
refs/heads/master: 807607f79b9d0ed81561746e4e1121905e75cf0f
4 changes: 2 additions & 2 deletions trunk/arch/openrisc/lib/delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ int __devinit read_current_timer(unsigned long *timer_value)

void __delay(unsigned long cycles)
{
cycles_t target = get_cycles() + cycles;
cycles_t start = get_cycles();

while (get_cycles() < target)
while ((get_cycles() - start) < cycles)
cpu_relax();
}
EXPORT_SYMBOL(__delay);
Expand Down

0 comments on commit 3b4de37

Please sign in to comment.