summaryrefslogtreecommitdiffstats
path: root/include/asm-i386/current.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2006-01-14 22:21:30 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-15 03:27:15 +0100
commit652050aec936fdd70ed9cbce1cd1ef30a7c9d117 (patch)
treea2859991fd1c71d918c85c5a8b4bc63bb2c64808 /include/asm-i386/current.h
parent[PATCH] enable unit-at-a-time optimisations for gcc4 (diff)
downloadlinux-652050aec936fdd70ed9cbce1cd1ef30a7c9d117.tar.xz
linux-652050aec936fdd70ed9cbce1cd1ef30a7c9d117.zip
[PATCH] mark several functions __always_inline
Arjan van de Ven <arjan@infradead.org> Mark a number of functions as 'must inline'. The functions affected by this patch need to be inlined because they use knowledge that their arguments are constant so that most of the function optimizes away. At this point this patch does not change behavior, it's for documentation only (and for future patches in the inline series) 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>
Diffstat (limited to 'include/asm-i386/current.h')
-rw-r--r--include/asm-i386/current.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-i386/current.h b/include/asm-i386/current.h
index d97328951f5f..3cbbecd79016 100644
--- a/include/asm-i386/current.h
+++ b/include/asm-i386/current.h
@@ -5,7 +5,7 @@
struct task_struct;
-static inline struct task_struct * get_current(void)
+static __always_inline struct task_struct * get_current(void)
{
return current_thread_info()->task;
}