aboutsummaryrefslogtreecommitdiffstats
path: root/init/main.c
diff options
context:
space:
mode:
authorKevin Winchester <kjwinchester@gmail.com>2010-08-09 20:20:32 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-09 23:45:06 -0400
commite446127134de06c4aceaa511f411d06eac91634b (patch)
tree7e685b71d8ed98cf712e1a88111c4613bc6f1847 /init/main.c
parent22c5c03b42c082ab57b5d24824769ada0d90f8dc (diff)
init/main.c: mark do_one_initcall* as __init_or_module
Andrew Morton suggested that the do_one_initcall and do_one_initcall_debug functions can be marked __init_or_module such that they can be discarded for the CONFIG_MODULES=N case. Signed-off-by: Kevin Winchester <kjwinchester@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/main.c')
-rw-r--r--init/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/main.c b/init/main.c
index dbee132923c5..86cbfd085b01 100644
--- a/init/main.c
+++ b/init/main.c
@@ -721,7 +721,7 @@ core_param(initcall_debug, initcall_debug, bool, 0644);
721 721
722static char msgbuf[64]; 722static char msgbuf[64];
723 723
724static int do_one_initcall_debug(initcall_t fn) 724static int __init_or_module do_one_initcall_debug(initcall_t fn)
725{ 725{
726 ktime_t calltime, delta, rettime; 726 ktime_t calltime, delta, rettime;
727 unsigned long long duration; 727 unsigned long long duration;
@@ -739,7 +739,7 @@ static int do_one_initcall_debug(initcall_t fn)
739 return ret; 739 return ret;
740} 740}
741 741
742int do_one_initcall(initcall_t fn) 742int __init_or_module do_one_initcall(initcall_t fn)
743{ 743{
744 int count = preempt_count(); 744 int count = preempt_count();
745 int ret; 745 int ret;