diff options
| author | Andrew Morton <[email protected]> | 2008-03-04 14:28:45 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2008-03-04 16:35:12 -0800 |
| commit | 5cba6d22e35a05adb28fdea191b232501518c455 (patch) | |
| tree | 65ebdb01d81cbe218cbdedc6e52f759a1b18cc0a /scripts/patch-kernel | |
| parent | daa49ff50a0cd1ddf88019e9afc41e26640ab1c4 (diff) | |
ndelay(): switch to C function to avoid 64-bit division
We should be able to do ndelay(some_u64), but that can cause a call to
__divdi3() to be emitted because the ndelay() macros does a divide.
Fix it by switching to static inline which will force the u64 arg to be
treated as an unsigned long. udelay() takes an unsigned long arg.
[[email protected]: reported m68k build breakage]
Cc: Adrian Bunk <[email protected]>
Cc: Evgeniy Polyakov <[email protected]>
Cc: Martin Michlmayr <[email protected]>
Cc: Herbert Xu <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions