summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2011-06-15 17:21:57 -0700
committerJohn Stultz <john.stultz@linaro.org>2016-02-16 13:52:32 -0800
commit90fbee8f979d91bb43e9923135000424adfdcaf0 (patch)
tree60cae0ae62667401c455f37762b0cdf33a329aed /include/linux
parent4dedd9f124703207895777ac6e91dacde0f7cc17 (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/linux')
-rw-r--r--include/linux/cpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/cpu.h b/include/linux/cpu.h
index d2ca8c38f9c4..7c73824def83 100644
--- a/include/linux/cpu.h
+++ b/include/linux/cpu.h
@@ -290,4 +290,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_ */