From: Eric W. Biederman Date: Wed, 14 Feb 2007 08:33:57 +0000 (-0800) Subject: [PATCH] sysctl: move init_irq_proc into init/main where it belongs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b04c3afb2b6e2f902b41bb62b73684d92d7e6c34;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [PATCH] sysctl: move init_irq_proc into init/main where it belongs Signed-off-by: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/init/main.c b/init/main.c index 4e9e92bb2b89..a20a5138211f 100644 --- a/init/main.c +++ b/init/main.c @@ -705,6 +705,9 @@ static void __init do_basic_setup(void) #ifdef CONFIG_SYSCTL sysctl_init(); #endif +#ifdef CONFIG_PROC_FS + init_irq_proc(); +#endif do_initcalls(); } diff --git a/kernel/sysctl.c b/kernel/sysctl.c index e0ac6cd79fcf..7ba4b0c16d6a 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -1177,8 +1177,6 @@ static ctl_table dev_table[] = { { .ctl_name = 0 } }; -extern void init_irq_proc (void); - static DEFINE_SPINLOCK(sysctl_lock); /* called under sysctl_lock */ @@ -1224,7 +1222,6 @@ void __init sysctl_init(void) { #ifdef CONFIG_PROC_SYSCTL register_proc_table(root_table, proc_sys_root, &root_table_header); - init_irq_proc(); #endif }