Full conversion to early_initcall() interface, remove old interface
A previous patch added the early_initcall(), to allow a cleaner hooking of pre-SMP initcalls. Now we remove the older interface, converting all existing users to the new one. [akpm@linux-foundation.org: cleanups] [akpm@linux-foundation.org: build fix] [kosaki.motohiro@jp.fujitsu.com: warning fix] [kosaki.motohiro@jp.fujitsu.com: warning fix] Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> Cc: Tom Zanussi <tzanussi@gmail.com> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
c2147a5092
commit
7babe8db99
@@ -33,7 +33,7 @@ struct call_single_queue {
|
||||
spinlock_t lock;
|
||||
};
|
||||
|
||||
void __cpuinit init_call_single_data(void)
|
||||
static int __cpuinit init_call_single_data(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -43,7 +43,9 @@ void __cpuinit init_call_single_data(void)
|
||||
spin_lock_init(&q->lock);
|
||||
INIT_LIST_HEAD(&q->list);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
early_initcall(init_call_single_data);
|
||||
|
||||
static void csd_flag_wait(struct call_single_data *data)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user