aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2004-08-22 22:46:30 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-22 22:46:30 -0700
commite5f29853e9797a740708e0d38cecda5be168ac8a (patch)
tree300086c4432f53eca1e99480f44dd9b4958232eb /kernel
parent0a50caad8db2a2a4ab547d8e280ad29560fef37d (diff)
downloadhistory-e5f29853e9797a740708e0d38cecda5be168ac8a.tar.gz
[PATCH] Enable all events for initramfs
Currently most driver events are not sent out when using initramfs as driver_init() (which triggers the events) is called before init_workqueues. This patch rearranges the init calls so that the hotplug event queue is enabled prior to calling driver_init(), hence we're getting all hotplug events again. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/kmod.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/kmod.c b/kernel/kmod.c
index 579269c38a3b84..5e7c44a0cbaa41 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -272,10 +272,8 @@ int call_usermodehelper(char *path, char **argv, char **envp, int wait)
}
EXPORT_SYMBOL(call_usermodehelper);
-static __init int usermodehelper_init(void)
+void __init usermodehelper_init(void)
{
khelper_wq = create_singlethread_workqueue("khelper");
BUG_ON(!khelper_wq);
- return 0;
}
-core_initcall(usermodehelper_init);