module: move __module_get and try_module_get() out of line.
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 26 Mar 2012 02:20:52 +0000 (12:50 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 26 Mar 2012 02:20:52 +0000 (12:50 +1030)
commitd53799be6758841e1ffb1fd3780f73d0ffe44432
treeaad25045e0bcfe4b4e612d09a0c3abe3beb7e761
parent026cee0086fe1df4cf74691cf273062cc769617d
module: move __module_get and try_module_get() out of line.

With the preempt, tracepoint and everything, it's getting a bit
chubby.  For an Ubuntu-based config:

Before:
$ size -t `find * -name '*.ko'` | grep TOTAL
56199906        3870760 1606616 61677282 3ad1ee2 (TOTALS)
$ size vmlinux
   text    data     bss     dec     hex filename
8509342  850368 3358720 12718430  c2115e vmlinux

After:
$ size -t `find * -name '*.ko'` | grep TOTAL
56183760 3867892 1606616 61658268 3acd49c (TOTALS)
$ size vmlinux
   text    data     bss     dec     hex filename
8501842  849088 3358720 12709650  c1ef12 vmlinux

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (made all out-of-line)
include/linux/module.h
kernel/module.c