diff options
author | Matt Tolentino <metolent@cs.vt.edu> | 2006-01-17 07:03:44 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-16 23:18:35 -0800 |
commit | c09b42404d29c8a9266f8186632330dc8474bf2e (patch) | |
tree | 26477ddbd49e6de7ef16e21d7a7440b9b9f11c57 /include/linux/init.h | |
parent | 44df75e629106efcada087cead6c3f33ed6bcc60 (diff) | |
download | kernel_samsung_espresso10-c09b42404d29c8a9266f8186632330dc8474bf2e.zip kernel_samsung_espresso10-c09b42404d29c8a9266f8186632330dc8474bf2e.tar.gz kernel_samsung_espresso10-c09b42404d29c8a9266f8186632330dc8474bf2e.tar.bz2 |
[PATCH] x86_64: add __meminit for memory hotplug
Add __meminit to the __init lineup to ensure functions default
to __init when memory hotplug is not enabled. Replace __devinit
with __meminit on functions that were changed when the memory
hotplug code was introduced.
Signed-off-by: Matt Tolentino <matthew.e.tolentino@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/init.h')
-rw-r--r-- | include/linux/init.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index 59008c3..ff8d8b8 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -241,6 +241,18 @@ void __init parse_early_param(void); #define __cpuexitdata __exitdata #endif +#ifdef CONFIG_MEMORY_HOTPLUG +#define __meminit +#define __meminitdata +#define __memexit +#define __memexitdata +#else +#define __meminit __init +#define __meminitdata __initdata +#define __memexit __exit +#define __memexitdata __exitdata +#endif + /* Functions marked as __devexit may be discarded at kernel link time, depending on config options. Newer versions of binutils detect references from retained sections to discarded sections and flag an error. Pointers to |