[PATCH] i386: use C code for current_thread_info()
authorChuck Ebbert <76306.1226@compuserve.com>
Tue, 27 Jun 2006 09:53:47 +0000 (02:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Jun 2006 00:32:37 +0000 (17:32 -0700)
commitc723e084606ca1c81e91b80b2c0c44bde7bbc4df
treec338f62586978093d7c6b85c3f783cb65879c1f1
parent4b89aff930d632be10d557d08d1b60dee7163dbe
[PATCH] i386: use C code for current_thread_info()

Using C code for current_thread_info() lets the compiler optimize it.
With gcc 4.0.2, kernel is smaller:

    text           data     bss     dec     hex filename
 3645212         555556  312024 4512792  44dc18 2.6.17-rc6-nb-post/vmlinux
 3647276         555556  312024 4514856  44e428 2.6.17-rc6-nb/vmlinux
 -------
   -2064

Signed-off-by: Chuck Ebbert <76306.1226@compuserve.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-i386/thread_info.h