diff options
author | Todd Poynor <toddpoynor@google.com> | 2011-06-15 17:21:57 -0700 |
---|---|---|
committer | Nitin Garg <nitin.garg@nxp.com> | 2016-01-14 11:03:00 -0600 |
commit | edb6a79850d53920eabb6712d134af3f678fa33b (patch) | |
tree | 589087a100038b1407d8869c24a3c9054f072868 /include | |
parent | 5c65c1f65e63f3bbc9332c31323227e1eb8bcda0 (diff) |
Move x86_64 idle notifiers to generic
Move the x86_64 idle notifiers originally by Andi Kleen and Venkatesh
Pallipadi to generic.
Change-Id: Idf29cda15be151f494ff245933c12462643388d5
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cpu.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h index c0fb6b1b4712..42702f2f2b7a 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -291,4 +291,11 @@ bool cpu_wait_death(unsigned int cpu, int seconds); bool cpu_report_death(void); #endif /* #ifdef CONFIG_HOTPLUG_CPU */ +#define IDLE_START 1 +#define IDLE_END 2 + +void idle_notifier_register(struct notifier_block *n); +void idle_notifier_unregister(struct notifier_block *n); +void idle_notifier_call_chain(unsigned long val); + #endif /* _LINUX_CPU_H_ */ |