Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163532
b: refs/heads/master
c: bd4fb4d
h: refs/heads/master
v: v3
  • Loading branch information
Stuart Menefy authored and Paul Mundt committed Aug 24, 2009
1 parent ccc88b5 commit 6fe22ad
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 6d243dd37002bcee54841852ab1b8606fd457851
refs/heads/master: bd4fb4d4c1e4a5a2ffbf57a83817a749df1339dd
5 changes: 3 additions & 2 deletions trunk/arch/sh/lib/delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ void __delay(unsigned long loops)

inline void __const_udelay(unsigned long xloops)
{
xloops *= 4;
__asm__("dmulu.l %0, %2\n\t"
"sts mach, %0"
: "=r" (xloops)
: "0" (xloops),
"r" (HZ * cpu_data[raw_smp_processor_id()].loops_per_jiffy)
"r" (cpu_data[raw_smp_processor_id()].loops_per_jiffy * (HZ/4))
: "macl", "mach");
__delay(xloops);
__delay(++xloops);
}

void __udelay(unsigned long usecs)
Expand Down

0 comments on commit 6fe22ad

Please sign in to comment.