Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100043
b: refs/heads/master
c: 7e58818
h: refs/heads/master
i:
  100041: f558174
  100039: 7e49b69
v: v3
  • Loading branch information
Glauber Costa authored and Ingo Molnar committed Jul 9, 2008
1 parent a3c1ca9 commit 9ea3350
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 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: a76febe975997b933b7285b6e20bb0a21c09d453
refs/heads/master: 7e58818d32c18197602d1869b22cfda99efd05fe
2 changes: 1 addition & 1 deletion trunk/arch/x86/lib/delay_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ inline void __const_udelay(unsigned long xloops)
int d0;

xloops *= 4;
__asm__("mull %0"
__asm__("mull %%edx"
:"=d" (xloops), "=&a" (d0)
:"1" (xloops), "0"
(cpu_data(raw_smp_processor_id()).loops_per_jiffy * (HZ/4)));
Expand Down
11 changes: 9 additions & 2 deletions trunk/arch/x86/lib/delay_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,16 @@ EXPORT_SYMBOL(__delay);

inline void __const_udelay(unsigned long xloops)
{
__delay(((xloops * HZ *
cpu_data(raw_smp_processor_id()).loops_per_jiffy) >> 32) + 1);
int d0;
xloops *= 4;
__asm__("mull %%edx"
:"=d" (xloops), "=&a" (d0)
:"1" (xloops), "0"
(cpu_data(raw_smp_processor_id()).loops_per_jiffy * (HZ/4)));

__delay(++xloops);
}

EXPORT_SYMBOL(__const_udelay);

void __udelay(unsigned long usecs)
Expand Down

0 comments on commit 9ea3350

Please sign in to comment.