Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43061
b: refs/heads/master
c: b9a8d94
h: refs/heads/master
i:
  43059: e2615be
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Andi Kleen committed Dec 7, 2006
1 parent 580bb6b commit d2f7566
Show file tree
Hide file tree
Showing 3 changed files with 4 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: bff6547bb6a4e82c399d74e7fba78b12d2f162ed
refs/heads/master: b9a8d94a47f8a41766f6f7944adfb1d641349903
4 changes: 2 additions & 2 deletions trunk/arch/x86_64/lib/delay.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ EXPORT_SYMBOL(__delay);

inline void __const_udelay(unsigned long xloops)
{
__delay((xloops * HZ * cpu_data[raw_smp_processor_id()].loops_per_jiffy) >> 32);
__delay(((xloops * HZ * cpu_data[raw_smp_processor_id()].loops_per_jiffy) >> 32) + 1);
}
EXPORT_SYMBOL(__const_udelay);

void __udelay(unsigned long usecs)
{
__const_udelay(usecs * 0x000010c6); /* 2**32 / 1000000 */
__const_udelay(usecs * 0x000010c7); /* 2**32 / 1000000 (rounded up) */
}
EXPORT_SYMBOL(__udelay);

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-x86_64/delay.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ extern void __const_udelay(unsigned long usecs);
extern void __delay(unsigned long loops);

#define udelay(n) (__builtin_constant_p(n) ? \
((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c6ul)) : \
((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c7ul)) : \
__udelay(n))

#define ndelay(n) (__builtin_constant_p(n) ? \
Expand Down

0 comments on commit d2f7566

Please sign in to comment.