]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Make __always_inline actually force always inlining
authorIngo Molnar <mingo@elte.he>
Sat, 14 Jan 2006 21:21:28 +0000 (13:21 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 15 Jan 2006 02:27:15 +0000 (18:27 -0800)
This patch is the first in a series that tries to optimize the kernel in terms
of size (and thus cache behavior, both cpu and pagecache).

This first patch changes __always_inline to be a forced inline instead of the
"regular" inline it was on everything except alpha.  This forced inline
matches the intention of the define better as a matter of documentation.
There is no change in behavior by this patch, since "inline" currently is
mapped to a forced inline anyway.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/compiler-gcc3.h
include/linux/compiler-gcc4.h

index 4209082ee934bd788c8f67666360f3f39173cf5f..1698b845761f0127b640135e783b5f7ed0758a62 100644 (file)
@@ -13,3 +13,4 @@
 #define __must_check           __attribute__((warn_unused_result))
 #endif
 
+#define __always_inline                inline __attribute__((always_inline))
index e913e9beaf6909ffbdd604f6759434de8dc213e8..8249115a1f730544252cf15f79d1aa1ffa7e0715 100644 (file)
@@ -6,4 +6,4 @@
 #define __attribute_used__     __attribute__((__used__))
 #define __must_check           __attribute__((warn_unused_result))
 #define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
-
+#define __always_inline                inline __attribute__((always_inline))