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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
--
vda
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux