summaryrefslogtreecommitdiff
path: root/include/linux/sched/idle.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-02-01 16:51:00 +0100
committerIngo Molnar <mingo@kernel.org>2017-03-02 08:42:41 +0100
commitb768917d2c08edc4b5616c86a569e524d190434b (patch)
tree24c6a99457c0c7ae6f625e16ea011938e9807e83 /include/linux/sched/idle.h
parenta60b9eda67beac2318fa159545ba7d022f780736 (diff)
sched/headers: Move the 'cpu_idle_type' enum from <linux/sched.h> to <linux/sched/idle.h>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/linux/sched/idle.h')
-rw-r--r--include/linux/sched/idle.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/sched/idle.h b/include/linux/sched/idle.h
index a3cf79b86986..6aabc9968cba 100644
--- a/include/linux/sched/idle.h
+++ b/include/linux/sched/idle.h
@@ -3,4 +3,11 @@
#include <linux/sched.h>
+enum cpu_idle_type {
+ CPU_IDLE,
+ CPU_NOT_IDLE,
+ CPU_NEWLY_IDLE,
+ CPU_MAX_IDLE_TYPES
+};
+
#endif /* _LINUX_SCHED_IDLE_H */