[PATCH 07/89] sched/idle: Create <linux/sched/idle.h> for idle CPU related definitions

From: Ingo Molnar
Date: Mon Feb 06 2017 - 08:56:20 EST


Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Mike Galbraith <efault@xxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Ingo Molnar <mingo@xxxxxxxxxx>
---
include/linux/sched.h | 7 -------
include/linux/sched/idle.h | 11 +++++++++++
include/linux/sched/topology.h | 2 ++
3 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index b2e18537088b..312796d25a05 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -951,13 +951,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.
diff --git a/include/linux/sched/idle.h b/include/linux/sched/idle.h
new file mode 100644
index 000000000000..14640f5798dc
--- /dev/null
+++ b/include/linux/sched/idle.h
@@ -0,0 +1,11 @@
+#ifndef _LINUX_SCHED_IDLE_H
+#define _LINUX_SCHED_IDLE_H
+
+enum cpu_idle_type {
+ CPU_IDLE,
+ CPU_NOT_IDLE,
+ CPU_NEWLY_IDLE,
+ CPU_MAX_IDLE_TYPES
+};
+
+#endif /* _LINUX_SCHED_IDLE_H */
diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h
index ae2cb8f9c431..0d6fceff37bb 100644
--- a/include/linux/sched/topology.h
+++ b/include/linux/sched/topology.h
@@ -1,6 +1,8 @@
#ifndef _LINUX_SCHED_TOPOLOGY_H
#define _LINUX_SCHED_TOPOLOGY_H

+#include <linux/sched/idle.h>
+
/*
* sched-domains (multiprocessor balancing) declarations:
*/
--
2.7.4