summaryrefslogtreecommitdiffstats
path: root/kernel/sched
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-03-05 16:06:38 +0800
committerIngo Molnar <mingo@kernel.org>2013-03-06 11:24:32 +0100
commitb13095f07f25464de65f5ce5ea94e16813d67488 (patch)
tree5faa4080f5384f9668f01619afb90ea1db1d1890 /kernel/sched
parent5e6521eaa1ee581a13b904f35b80c5efeb2baccb (diff)
downloadop-kernel-dev-b13095f07f25464de65f5ce5ea94e16813d67488.zip
op-kernel-dev-b13095f07f25464de65f5ce5ea94e16813d67488.tar.gz
sched: Move wake flags to kernel/sched/sched.h
They are used internally only. Signed-off-by: Li Zefan <lizefan@huawei.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/5135A78E.7040609@huawei.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/sched.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 1a4a2b1..4e5c2af 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -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;
OpenPOWER on IntegriCloud