From: Andrew Morton <akpm@osdl.org>
To: olh@suse.de, linux-kernel@vger.kernel.org
Subject: Re: how long does it take to init the scheduler?
Date: Sat, 8 May 2004 04:30:05 -0700 [thread overview]
Message-ID: <20040508043005.44222723.akpm@osdl.org> (raw)
In-Reply-To: <20040508041910.495be234.akpm@osdl.org>
Andrew Morton <akpm@osdl.org> wrote:
>
> -module_init(init_elf_binfmt)
> +core_initcall(init_elf_binfmt)
Sigh. core_initcall() requires a semicolon, but module_init() does not.
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:28:39.475388824 -0700
@@ -1542,6 +1542,6 @@ static void __exit exit_elf_binfmt(void)
unregister_binfmt(&elf_format);
}
-module_init(init_elf_binfmt)
-module_exit(exit_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:29:02.014962288 -0700
@@ -110,6 +110,6 @@ static void __exit exit_em86_binfmt(void
unregister_binfmt(&em86_format);
}
-module_init(init_em86_binfmt)
-module_exit(exit_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:26:17.946904424 -0700
@@ -111,6 +111,6 @@ static void __exit exit_script_binfmt(vo
unregister_binfmt(&script_format);
}
-module_init(init_script_binfmt)
-module_exit(exit_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);
_
next prev parent reply other threads:[~2004-05-08 11:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-08 10:53 how long does it take to init the scheduler? Olaf Hering
2004-05-08 10:59 ` Andrew Morton
2004-05-08 11:09 ` Olaf Hering
2004-05-08 11:19 ` Andrew Morton
2004-05-08 11:30 ` Andrew Morton [this message]
2004-05-08 11:24 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040508043005.44222723.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=olh@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.