diff options
author | Chandra Seetharaman <sekharan@us.ibm.com> | 2006-06-27 11:54:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-28 02:32:41 +0200 |
commit | 26c2143b63b8078d08d562733716de142927e17a (patch) | |
tree | 6a2add2bca5bffbd33a0465fd934fffa34a695e9 /mm | |
parent | [PATCH] cpu hotplug: make cpu_notifier related notifier blocks __cpuinit only (diff) | |
download | linux-26c2143b63b8078d08d562733716de142927e17a.tar.xz linux-26c2143b63b8078d08d562733716de142927e17a.zip |
[PATCH] cpu hotplug: make cpu_notifier related notifier calls __cpuinit only
Make notifier_calls associated with cpu_notifier as __cpuinit.
__cpuinit makes sure that the function is init time only unless
CONFIG_HOTPLUG_CPU is defined.
[akpm@osdl.org: section fix]
Signed-off-by: Chandra Seetharaman <sekharan@us.ibm.com>
Cc: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page-writeback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index 8ac6bfb40073..4ec7026c7bab 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -516,7 +516,7 @@ static void set_ratelimit(void) ratelimit_pages = (4096 * 1024) / PAGE_CACHE_SIZE; } -static int +static int __cpuinit ratelimit_handler(struct notifier_block *self, unsigned long u, void *v) { set_ratelimit(); |