]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] uml: fix unreasonably long udelay
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Mon, 2 Apr 2007 06:49:37 +0000 (23:49 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 2 Apr 2007 17:06:08 +0000 (10:06 -0700)
commitde0bcf8a48fa360febad0157a35a1b7f489f1eda
tree21ec69d27c0d5e239f9c0eed531dbcdc0f602af2
parent80f9489b40676019cf8f3803c67b87608cce6b67
[PATCH] 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>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/sys-i386/delay.c
arch/um/sys-x86_64/delay.c
include/asm-um/delay.h