Re: [PATCH] deinline sleep/delay functions
From: Vojtech Pavlik (vojtech_at_suse.cz)
Date: 07/01/05
- Previous message: David Masover: "Re: reiser4 plugins"
- Next in thread: Vojtech Pavlik: "Re: [PATCH] deinline sleep/delay functions"
- Maybe reply: Vojtech Pavlik: "Re: [PATCH] deinline sleep/delay functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 1 Jul 2005 09:53:04 +0200 To: Denis Vlasenko <vda@ilport.com.ua>
On Thu, Jun 30, 2005 at 08:52:25AM +0300, Denis Vlasenko wrote:
> Hi Andrew,
>
> Optimizing delay functions for speed is utterly pointless.
>
> This patch turns ssleep(n), mdelay(n), udelay(n) and ndelay(n)
> into functions, thus they generate the smallest possible code
> at the callsite. Previously they were more or less inlined.
Optimizing mdelay() and udelay() for speed is pointless, but optimizing
ndelay() makes a lot of sense - if the setup time (call, etc) of the
delay is large, the delay time will be off by many percent.
-- Vojtech Pavlik SuSE Labs, SuSE CR - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: David Masover: "Re: reiser4 plugins"
- Next in thread: Vojtech Pavlik: "Re: [PATCH] deinline sleep/delay functions"
- Maybe reply: Vojtech Pavlik: "Re: [PATCH] deinline sleep/delay functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]