From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263592AbUEHLTi (ORCPT ); Sat, 8 May 2004 07:19:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263580AbUEHLTi (ORCPT ); Sat, 8 May 2004 07:19:38 -0400 Received: from fw.osdl.org ([65.172.181.6]:44178 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S263592AbUEHLTd (ORCPT ); Sat, 8 May 2004 07:19:33 -0400 Date: Sat, 8 May 2004 04:19:10 -0700 From: Andrew Morton To: Olaf Hering Cc: linux-kernel@vger.kernel.org Subject: Re: how long does it take to init the scheduler? Message-Id: <20040508041910.495be234.akpm@osdl.org> In-Reply-To: <20040508110959.GA1374@suse.de> References: <20040508105311.GA15577@suse.de> <20040508035934.46101a9b.akpm@osdl.org> <20040508110959.GA1374@suse.de> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Olaf Hering wrote: > > That leads to another question. usermodehelper_init() is now an initcall. > all the binfmt stuff is also an initcall. We had a patch (for debugging) > that turned init_elf_binfmt() into core_initcall. > Can we change that as well, so one could finally run stuff via the > driver hotplug events? init_script_binfmt() should be also > core_initcall, so you can run scripts. But I havent looked at the > dependencies for the binfmt stuff. yes, that's surely OK - those init functions only call register_binfmt() and register_filesystem(), and they merely stick things into a list. 25-akpm/fs/binfmt_aout.c | 2 +- 25-akpm/fs/binfmt_elf.c | 2 +- 25-akpm/fs/binfmt_em86.c | 2 +- 25-akpm/fs/binfmt_flat.c | 2 +- 25-akpm/fs/binfmt_misc.c | 2 +- 25-akpm/fs/binfmt_script.c | 2 +- 25-akpm/fs/binfmt_som.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff -puN fs/binfmt_aout.c~binfmt-use-core_initcall fs/binfmt_aout.c --- 25/fs/binfmt_aout.c~binfmt-use-core_initcall 2004-05-08 04:17:46.882598008 -0700 +++ 25-akpm/fs/binfmt_aout.c 2004-05-08 04:17:46.895596032 -0700 @@ -520,6 +520,6 @@ static void __exit exit_aout_binfmt(void unregister_binfmt(&aout_format); } -module_init(init_aout_binfmt); +core_initcall(init_aout_binfmt); module_exit(exit_aout_binfmt); MODULE_LICENSE("GPL"); diff -puN fs/binfmt_elf.c~binfmt-use-core_initcall fs/binfmt_elf.c --- 25/fs/binfmt_elf.c~binfmt-use-core_initcall 2004-05-08 04:17:46.884597704 -0700 +++ 25-akpm/fs/binfmt_elf.c 2004-05-08 04:17:46.896595880 -0700 @@ -1542,6 +1542,6 @@ static void __exit exit_elf_binfmt(void) unregister_binfmt(&elf_format); } -module_init(init_elf_binfmt) +core_initcall(init_elf_binfmt) module_exit(exit_elf_binfmt) MODULE_LICENSE("GPL"); diff -puN fs/binfmt_em86.c~binfmt-use-core_initcall fs/binfmt_em86.c --- 25/fs/binfmt_em86.c~binfmt-use-core_initcall 2004-05-08 04:17:46.885597552 -0700 +++ 25-akpm/fs/binfmt_em86.c 2004-05-08 04:17:46.896595880 -0700 @@ -110,6 +110,6 @@ static void __exit exit_em86_binfmt(void unregister_binfmt(&em86_format); } -module_init(init_em86_binfmt) +core_initcall(init_em86_binfmt) module_exit(exit_em86_binfmt) MODULE_LICENSE("GPL"); diff -puN fs/binfmt_flat.c~binfmt-use-core_initcall fs/binfmt_flat.c --- 25/fs/binfmt_flat.c~binfmt-use-core_initcall 2004-05-08 04:17:46.887597248 -0700 +++ 25-akpm/fs/binfmt_flat.c 2004-05-08 04:17:46.898595576 -0700 @@ -895,7 +895,7 @@ static void __exit exit_flat_binfmt(void /****************************************************************************/ -module_init(init_flat_binfmt); +core_initcall(init_flat_binfmt); module_exit(exit_flat_binfmt); /****************************************************************************/ diff -puN fs/binfmt_misc.c~binfmt-use-core_initcall fs/binfmt_misc.c --- 25/fs/binfmt_misc.c~binfmt-use-core_initcall 2004-05-08 04:17:46.888597096 -0700 +++ 25-akpm/fs/binfmt_misc.c 2004-05-08 04:17:46.898595576 -0700 @@ -775,6 +775,6 @@ static void __exit exit_misc_binfmt(void unregister_filesystem(&bm_fs_type); } -module_init(init_misc_binfmt); +core_initcall(init_misc_binfmt); module_exit(exit_misc_binfmt); MODULE_LICENSE("GPL"); diff -puN fs/binfmt_script.c~binfmt-use-core_initcall fs/binfmt_script.c --- 25/fs/binfmt_script.c~binfmt-use-core_initcall 2004-05-08 04:17:46.890596792 -0700 +++ 25-akpm/fs/binfmt_script.c 2004-05-08 04:17:46.899595424 -0700 @@ -111,6 +111,6 @@ static void __exit exit_script_binfmt(vo unregister_binfmt(&script_format); } -module_init(init_script_binfmt) +core_initcall(init_script_binfmt) module_exit(exit_script_binfmt) MODULE_LICENSE("GPL"); diff -puN fs/binfmt_som.c~binfmt-use-core_initcall fs/binfmt_som.c --- 25/fs/binfmt_som.c~binfmt-use-core_initcall 2004-05-08 04:17:46.891596640 -0700 +++ 25-akpm/fs/binfmt_som.c 2004-05-08 04:17:46.899595424 -0700 @@ -305,5 +305,5 @@ static void __exit exit_som_binfmt(void) unregister_binfmt(&som_format); } -module_init(init_som_binfmt); +core_initcall(init_som_binfmt); module_exit(exit_som_binfmt); _