diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-08-02 11:41:40 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-08-02 11:41:40 -0400 |
commit | cad60d93e18ba52b6f069b2edb031c89bf603b07 (patch) | |
tree | dfe74c165e7607c233d223614ef400163c6ba44c /kernel/sched_fair.c | |
parent | 4e6f96f313561d86d248edf0eaff2336d8217e1b (diff) |
[PATCH] sched: ->task_new cleanup
make sched_class.task_new == NULL a 'default method', this
allows the removal of task_rt_new.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 6971db0a7160..243da6cae71c 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -1041,11 +1041,10 @@ static void task_tick_fair(struct rq *rq, struct task_struct *curr) | |||
1041 | * monopolize the CPU. Note: the parent runqueue is locked, | 1041 | * monopolize the CPU. Note: the parent runqueue is locked, |
1042 | * the child is not running yet. | 1042 | * the child is not running yet. |
1043 | */ | 1043 | */ |
1044 | static void task_new_fair(struct rq *rq, struct task_struct *p) | 1044 | static void task_new_fair(struct rq *rq, struct task_struct *p, u64 now) |
1045 | { | 1045 | { |
1046 | struct cfs_rq *cfs_rq = task_cfs_rq(p); | 1046 | struct cfs_rq *cfs_rq = task_cfs_rq(p); |
1047 | struct sched_entity *se = &p->se; | 1047 | struct sched_entity *se = &p->se; |
1048 | u64 now = rq_clock(rq); | ||
1049 | 1048 | ||
1050 | sched_info_queued(p); | 1049 | sched_info_queued(p); |
1051 | 1050 | ||
@@ -1072,7 +1071,6 @@ static void task_new_fair(struct rq *rq, struct task_struct *p) | |||
1072 | p->se.wait_runtime = -(sysctl_sched_granularity / 2); | 1071 | p->se.wait_runtime = -(sysctl_sched_granularity / 2); |
1073 | 1072 | ||
1074 | __enqueue_entity(cfs_rq, se); | 1073 | __enqueue_entity(cfs_rq, se); |
1075 | inc_nr_running(p, rq, now); | ||
1076 | } | 1074 | } |
1077 | 1075 | ||
1078 | #ifdef CONFIG_FAIR_GROUP_SCHED | 1076 | #ifdef CONFIG_FAIR_GROUP_SCHED |