aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-09-14 13:55:44 -0400
committerIngo Molnar <mingo@elte.hu>2009-09-15 10:51:30 -0400
commit7d47872146398dbede13223299fe1cb368ebc781 (patch)
treec472424ecbabdb8136e2b93f49f75af9414f03f3 /include/linux/sched.h
parent0763a660a84220cc3900fd32abdd7ad109e2278d (diff)
sched: Rename sync arguments
In order to extend the functions to have more than 1 flag (sync), rename the argument to flags, and explicitly define a WF_ space for individual flags. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 5c116f03d74c..3b07168b6f03 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1024,6 +1024,11 @@ struct uts_namespace;
1024struct rq; 1024struct rq;
1025struct sched_domain; 1025struct sched_domain;
1026 1026
1027/*
1028 * wake flags
1029 */
1030#define WF_SYNC 0x01 /* waker goes to sleep after wakup */
1031
1027struct sched_class { 1032struct sched_class {
1028 const struct sched_class *next; 1033 const struct sched_class *next;
1029 1034
@@ -1031,13 +1036,13 @@ struct sched_class {
1031 void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep); 1036 void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep);
1032 void (*yield_task) (struct rq *rq); 1037 void (*yield_task) (struct rq *rq);
1033 1038
1034 void (*check_preempt_curr) (struct rq *rq, struct task_struct *p, int sync); 1039 void (*check_preempt_curr) (struct rq *rq, struct task_struct *p, int flags);
1035 1040
1036 struct task_struct * (*pick_next_task) (struct rq *rq); 1041 struct task_struct * (*pick_next_task) (struct rq *rq);
1037 void (*put_prev_task) (struct rq *rq, struct task_struct *p); 1042 void (*put_prev_task) (struct rq *rq, struct task_struct *p);
1038 1043
1039#ifdef CONFIG_SMP 1044#ifdef CONFIG_SMP
1040 int (*select_task_rq)(struct task_struct *p, int sd_flag, int sync); 1045 int (*select_task_rq)(struct task_struct *p, int sd_flag, int flags);
1041 1046
1042 unsigned long (*load_balance) (struct rq *this_rq, int this_cpu, 1047 unsigned long (*load_balance) (struct rq *this_rq, int this_cpu,
1043 struct rq *busiest, unsigned long max_load_move, 1048 struct rq *busiest, unsigned long max_load_move,