sched: Move wake flags to kernel/sched/sched.h
authorLi Zefan <[email protected]>
Tue, 5 Mar 2013 08:06:38 +0000 (16:06 +0800)
committerIngo Molnar <[email protected]>
Wed, 6 Mar 2013 10:24:32 +0000 (11:24 +0100)
They are used internally only.

Signed-off-by: Li Zefan <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
include/linux/sched.h
kernel/sched/sched.h

index 0d641304c0ff20c624db927b19a674769612fa57..863b505ac48ef06a5933b7a48e43d21eadebb730 100644 (file)
@@ -920,13 +920,6 @@ struct uts_namespace;
 struct rq;
 struct sched_domain;
 
-/*
- * wake flags
- */
-#define WF_SYNC                0x01            /* waker goes to sleep after wakup */
-#define WF_FORK                0x02            /* child wakeup after fork */
-#define WF_MIGRATED    0x04            /* internal use, task got migrated */
-
 #define ENQUEUE_WAKEUP         1
 #define ENQUEUE_HEAD           2
 #ifdef CONFIG_SMP
index 1a4a2b19c2f488f81f71afe3a4fc7f08bf01fbed..4e5c2afdac918a99da5f94c9505c26cde20d1df1 100644 (file)
@@ -865,6 +865,13 @@ static inline void finish_lock_switch(struct rq *rq, struct task_struct *prev)
 }
 #endif /* __ARCH_WANT_UNLOCKED_CTXSW */
 
+/*
+ * wake flags
+ */
+#define WF_SYNC                0x01            /* waker goes to sleep after wakeup */
+#define WF_FORK                0x02            /* child wakeup after fork */
+#define WF_MIGRATED    0x4             /* internal use, task got migrated */
+
 static inline void update_load_add(struct load_weight *lw, unsigned long inc)
 {
        lw->weight += inc;