[PATCH 0/3] make mdelay, udelay and ssleep calls smaller

From: Denis Vlasenko
Date: Tue Aug 22 2006 - 11:07:20 EST


Currently, magic in include/linux/delay.h
inlines mdelay and ssleep, and various arches
do the same to udelay.

This is pointless. We are going to perform a delay of 1000+
CPU cycles anyway, no need to optimize away a few cycles.

This patchset converts calls to these functions
into true functuon calls, with no additional
math done or hidden arguments pushed to stack
at the callsite.

Tested on i386, (almost) allyesconfig kernel:

# size linux-2.6.17.9.org/vmlinux linux-2.6.17.9.delay/vmlinux
text data bss dec hex filename
25342204 5921954 1937036 33201194 1fa9c2a linux-2.6.17.9.org/vmlinux
25335905 5921982 1937036 33194923 1fa83ab linux-2.6.17.9.delay/vmlinux

Signed-off-by: Denis Vlasenko <vda.linux@xxxxxxxxxxxxxx>
--
vda
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/