summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorHannes Hering <hannes.hering@linux.vnet.ibm.com>2008-05-07 14:43:01 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-05-13 01:31:38 -0400
commit3c82c30cd5963a4523a6ec5f32fc2d20a5bb672a (patch)
tree258d92a11abe73596891427e385fc02e3fe3efc3 /drivers/base
parentad5da7ab7be0a510ae69d533edf573d1ca6eec4b (diff)
downloadblackbird-op-linux-3c82c30cd5963a4523a6ec5f32fc2d20a5bb672a.tar.gz
blackbird-op-linux-3c82c30cd5963a4523a6ec5f32fc2d20a5bb672a.zip
memory: Introduce exports for memory notifiers
This patch introduces two exports to allow modules to use memory notifiers. Signed-off-by: Hannes Hering <hering2@de.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/memory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/memory.c b/drivers/base/memory.c
index 8ce6de5a7e28..937e8258981d 100644
--- a/drivers/base/memory.c
+++ b/drivers/base/memory.c
@@ -53,11 +53,13 @@ int register_memory_notifier(struct notifier_block *nb)
{
return blocking_notifier_chain_register(&memory_chain, nb);
}
+EXPORT_SYMBOL(register_memory_notifier);
void unregister_memory_notifier(struct notifier_block *nb)
{
blocking_notifier_chain_unregister(&memory_chain, nb);
}
+EXPORT_SYMBOL(unregister_memory_notifier);
/*
* register_memory - Setup a sysfs device for a memory block
OpenPOWER on IntegriCloud