]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/memory.h
hotplug_memory_notifier section annotation
[linux-2.6-omap-h63xx.git] / include / linux / memory.h
index 39628dfe4a4c16d5be661d5cad7075df9e334e8c..36c82c9e6ea70985243e56a2b41ac13fe060bd5b 100644 (file)
@@ -58,6 +58,7 @@ struct mem_section;
  * order in the callback chain)
  */
 #define SLAB_CALLBACK_PRI       1
+#define IPC_CALLBACK_PRI        10
 
 #ifndef CONFIG_MEMORY_HOTPLUG_SPARSE
 static inline int memory_dev_init(void)
@@ -90,7 +91,7 @@ extern int memory_notify(unsigned long val, void *v);
 
 #ifdef CONFIG_MEMORY_HOTPLUG
 #define hotplug_memory_notifier(fn, pri) {                     \
-       static struct notifier_block fn##_mem_nb =              \
+       static __meminitdata struct notifier_block fn##_mem_nb =\
                { .notifier_call = fn, .priority = pri };       \
        register_memory_notifier(&fn##_mem_nb);                 \
 }