diff options
author | Lee Jones <lee.jones@linaro.org> | 2011-07-26 17:31:06 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2011-07-26 17:35:08 +0100 |
commit | 6f914cb1efe4aba81bb841ec8f4f5636163c0586 (patch) | |
tree | 7ef04a88618a05c53faa2fd4ccd03e90c06a89bd /kernel/cpu.c | |
parent | 232bdfad970ce35177ca12c5527d1c96f7ce44f1 (diff) |
Apply mega patch to make GLK the ALK
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'kernel/cpu.c')
-rw-r--r-- | kernel/cpu.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/kernel/cpu.c b/kernel/cpu.c index 12b7458f23b..404770761a4 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -594,3 +594,23 @@ void init_cpu_online(const struct cpumask *src) { cpumask_copy(to_cpumask(cpu_online_bits), src); } + +static ATOMIC_NOTIFIER_HEAD(idle_notifier); + +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 idle_notifier_call_chain(unsigned long val) +{ + atomic_notifier_call_chain(&idle_notifier, val, NULL); +} +EXPORT_SYMBOL_GPL(idle_notifier_call_chain); |