/*
* Need to know about CPUs going idle?
*/
-static ATOMIC_NOTIFIER_HEAD(idle_chain);
+static struct notifier_block *idle_chain;
int register_idle_notifier(struct notifier_block *nb)
{
- return atomic_notifier_chain_register(&idle_chain, nb);
+ return notifier_chain_register(&idle_chain, nb);
}
EXPORT_SYMBOL(register_idle_notifier);
int unregister_idle_notifier(struct notifier_block *nb)
{
- return atomic_notifier_chain_unregister(&idle_chain, nb);
+ return notifier_chain_unregister(&idle_chain, nb);
}
EXPORT_SYMBOL(unregister_idle_notifier);
/* disable monitor call class 0 */
__ctl_clear_bit(8, 15);
- atomic_notifier_call_chain(&idle_chain, CPU_NOT_IDLE,
+ notifier_call_chain(&idle_chain, CPU_NOT_IDLE,
(void *)(long) smp_processor_id());
}
/*
* The idle loop on a S390...
*/
-static void default_idle(void)
+void default_idle(void)
{
int cpu, rc;
return;
}
- rc = atomic_notifier_call_chain(&idle_chain,
- CPU_IDLE, (void *)(long) cpu);
+ rc = notifier_call_chain(&idle_chain, CPU_IDLE, (void *)(long) cpu);
if (rc != NOTIFY_OK && rc != NOTIFY_DONE)
BUG();
if (rc != NOTIFY_OK) {