summaryrefslogtreecommitdiff
path: root/include/linux/delay.h
AgeCommit message (Collapse)Author
2006-06-21[POWERPC] Fix mdelay badness on shared processor partitionsAnton Blanchard
On partitioned PPC64 systems where a partition is given 1/10 of a processor, we have seen mdelay() delaying for 10 times longer than it should. The reason is that the generic mdelay(n) does n delays of 1 millisecond each. However, with 1/10 of a processor, we only get a one-millisecond timeslice every 10ms. Thus each 1 millisecond delay loop ends up taking 10ms elapsed time. The solution is just to use the PPC64 udelay function, which uses the timebase to ensure that the delay is based on elapsed time rather than how much processing time the partition has been given. (Yes, the generic mdelay uses the PPC64 udelay, but the problem is that the start time gets reset every millisecond, and each time it gets reset we lose another 9ms.) Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org> Acked-by: Andrew Morton <akpm@osdl.org>
2005-01-04[PATCH] FRV: Make calibrate_delay() optionalDavid Howells
The attached patch makes calibrate_delay() optional. In this architecture, it's a waste of time since we can predict exactly what it's going to come up with just by looking at the CPU's hardware clock registers. Thus far, we haven't seen a board with any clock not dependent on the CPU's clock. Signed-Off-By: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-09-02[PATCH] Add msleep_interruptible() function to kernel/timer.cMaximilian Attems
Signed-off-by: Maximilian Attems <janitor@sternwelten.at> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-08-21[PATCH] add ssleep(), kill scsi_sleep()Jeff Garzik
So, the kernel needs a 'sleep', but that token is far too common, so I chose ssleep(). scsi_sleep() is a manually implemented msleep(), so I remove it. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2004-05-18Add msleep function to the kernel core to prevent duplication.Greg Kroah-Hartman
2003-08-02[PATCH] Fix mdelay's use of 'msec' nameBenjamin Herrenschmidt
The mdelay() macro does the wrong thing if you try to use it with an argument expression that contains the (perfectly natural) variable name 'msec'. Fix it to use an internal variable that doesn't clash with normal naming.
2003-02-17Add ndelay() compatibility macro. If the architectureLinus Torvalds
doesn't define ndelay(), fall back on udelay().
2002-02-04Import changesetLinus Torvalds