[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200803310102.43277.vda.linux@googlemail.com>
Date: Mon, 31 Mar 2008 01:02:43 +0200
From: Denys Vlasenko <vda.linux@...glemail.com>
To: Jeff Garzik <jeff@...zik.org>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] sb1000.c: stop inlining largish static functions
Hi Jeff,
Can you take this patch into your net driver fixes tree?
drivers/net/sb1000.c has lots of inlined static functions.
Mst of them are used at initialization, wait for some
hardware register to change (wait using yield, sleep etc),
or do slow port-based I/O. Inlining thse "for speed" makes no sense.
This patch removes "inline" from biggest static function
(regardless of number of callsites - gcc nowadays auto-inlines
statics with one callsite).
Size difference for 32bit x86:
text data bss dec hex filename
6299 129 0 6428 191c linux-2.6-ALLYES/drivers/net/sb1000.o
5418 129 0 5547 15ab linux-2.6.inline-ALLYES/drivers/net/sb1000.o
(I also see some other optimization opportunities,
will test and send a patch separately).
Signed-off-by: Denys Vlasenko <vda.linux@...glemail.com>
--
vda
View attachment "deinline_sb1000.diff" of type "text/x-diff" (11421 bytes)
Powered by blists - more mailing lists