]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] lib/rwsem.c: un-inline rwsem_down_failed_common()
authorAndreas Mohr <andi@rhlx01.fht-esslingen.de>
Fri, 29 Sep 2006 09:01:20 +0000 (02:01 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:22 +0000 (09:18 -0700)
commit64420f4d7a8cdfeac3dcdd5182465df218293fa7
tree0e06d558f1e349fcc26a9fb06b2c5f96776b6b86
parentaefa2eae8c0929870801c6a0c0f5d9d56e54d7c9
[PATCH] lib/rwsem.c: un-inline rwsem_down_failed_common()

Un-inlining rwsem_down_failed_common() (two callsites) reduced lib/rwsem.o
on my Athlon, gcc 4.1.2 from 5935 to 5480 Bytes (455 Bytes saved).

I thus guess that reduced icache footprint (and better function caching) is
worth more than any function call overhead.

Signed-off-by: Andreas Mohr <andi@lisas.de>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/rwsem.c