Messages in this thread | | | From | Denis Vlasenko <> | Subject | [PATCH 0/3] make mdelay, udelay and ssleep calls smaller | Date | Tue, 22 Aug 2006 17:08:10 +0200 |
| |
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@googlemail.com> -- vda - 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/
| |