浏览代码

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>
Ingo Molnar 8 年之前
父节点
当前提交
b768917d2c
共有 2 个文件被更改,包括 7 次插入7 次删除
  1. 0 7
      include/linux/sched.h
  2. 7 0
      include/linux/sched/idle.h

+ 0 - 7
include/linux/sched.h

@@ -943,13 +943,6 @@ static inline int sched_info_on(void)
 void force_schedstat_enabled(void);
 void force_schedstat_enabled(void);
 #endif
 #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
  * Integer metrics need fixed point arithmetic, e.g., sched/fair
  * has a few: load, load_avg, util_avg, freq, and capacity.
  * has a few: load, load_avg, util_avg, freq, and capacity.

+ 7 - 0
include/linux/sched/idle.h

@@ -3,4 +3,11 @@
 
 
 #include <linux/sched.h>
 #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 */
 #endif /* _LINUX_SCHED_IDLE_H */