lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200608221708.10115.vda.linux@googlemail.com>
Date:	Tue, 22 Aug 2006 17:08:10 +0200
From:	Denis Vlasenko <vda.linux@...glemail.com>
To:	linux-kernel@...r.kernel.org, Andrew Morton <akpm@...l.org>
Subject: [PATCH 0/3] make mdelay, udelay and ssleep calls smaller

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ