aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorAndrew Morton <[email protected]>2008-03-04 14:28:45 -0800
committerLinus Torvalds <[email protected]>2008-03-04 16:35:12 -0800
commit5cba6d22e35a05adb28fdea191b232501518c455 (patch)
tree65ebdb01d81cbe218cbdedc6e52f759a1b18cc0a /scripts/patch-kernel
parentdaa49ff50a0cd1ddf88019e9afc41e26640ab1c4 (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