]> git.karo-electronics.de Git - karo-tx-linux.git/commit
uml: fix unreasonably long udelay
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Wed, 28 Mar 2007 23:26:11 +0000 (01:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Apr 2007 10:43:12 +0000 (03:43 -0700)
commit16ad6a9070a33c1a624ace8880dd92803228a73d
tree7b09a9ea9561f3d54c8d2c5d15902e64f76c4e65
parent93420eaf5b7ef59dc1de112419f854741d06bc66
uml: fix unreasonably long udelay

Currently we have a confused udelay implementation.

* __const_udelay does not accept usecs but xloops in i386 and x86_64
* our implementation requires usecs as arg
* it gets a xloops count when called by asm/arch/delay.h

Bugs related to this (extremely long shutdown times) where reported by some
x86_64 users, especially using Device Mapper.

To hit this bug, a compile-time constant time parameter must be passed - that's
why UML seems to work most times.
Fix this with a simple udelay implementation.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/um/sys-i386/delay.c
arch/um/sys-x86_64/delay.c
include/asm-um/delay.h