From: Venkatesh Pallipadi Date: Thu, 16 Oct 2008 20:34:43 +0000 (-0400) Subject: x86 allow modules to register idle notifiers X-Git-Tag: v2.6.28-rc1~26^2~15^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c7d87d79d14cecab7a34dedf1b133377cf5a0203;p=linux-2.6-omap-h63xx.git x86 allow modules to register idle notifiers needed if the i7300_idle driver is to be modular. Signed-off-by: Venkatesh Pallipadi Acked-by: Ingo Molnar Signed-off-by: Len Brown --- diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index e12e0e4dd25..3e3d503eadc 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) {