summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>2008-10-17 00:34:43 +0400
committerLen Brown <len.brown@intel.com>2008-10-22 07:58:20 +0400
commitc7d87d79d14cecab7a34dedf1b133377cf5a0203 (patch)
tree06c45c7133aa0a3604f120d8548eab52e24bbe73
parent3fa8749e584b55f1180411ab1b51117190bac1e5 (diff)
downloadlinux-c7d87d79d14cecab7a34dedf1b133377cf5a0203.tar.xz
x86 allow modules to register idle notifiers
needed if the i7300_idle driver is to be modular. Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Acked-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--arch/x86/kernel/process_64.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c
index e12e0e4dd256..3e3d503eadcf 100644
--- a/arch/x86/kernel/process_64.c
+++ b/arch/x86/kernel/process_64.c
@@ -62,6 +62,13 @@ void idle_notifier_register(struct notifier_block *n)
{
atomic_notifier_chain_register(&idle_notifier, n);
}
+EXPORT_SYMBOL_GPL(idle_notifier_register);
+
+void idle_notifier_unregister(struct notifier_block *n)
+{
+ atomic_notifier_chain_unregister(&idle_notifier, n);
+}
+EXPORT_SYMBOL_GPL(idle_notifier_unregister);
void enter_idle(void)
{