sched/headers: Move the 'cpu_idle_type' enum from <linux/sched.h> to <linux/sched...
authorIngo Molnar <mingo@kernel.org>
Wed, 1 Feb 2017 15:51:00 +0000 (16:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:41 +0000 (08:42 +0100)
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>
include/linux/sched.h
include/linux/sched/idle.h

index 55480782ce7f30d18a5d098c02c7b4aaed7225ce..8a8252e9e0c797384df08e7cade3366923aa82e6 100644 (file)
@@ -943,13 +943,6 @@ static inline int sched_info_on(void)
 void force_schedstat_enabled(void);
 #endif
 
-enum cpu_idle_type {
-       CPU_IDLE,
-       CPU_NOT_IDLE,
-       CPU_NEWLY_IDLE,
-       CPU_MAX_IDLE_TYPES
-};
-
 /*
  * Integer metrics need fixed point arithmetic, e.g., sched/fair
  * has a few: load, load_avg, util_avg, freq, and capacity.
index a3cf79b86986c189203370c18e198b8597fdb739..6aabc9968cba7048898e9b77c2357d74ce281773 100644 (file)
@@ -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 */