sched: remove the 'u64 now' parameter from pick_next_task()

2007-08-09 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ff95f3df54609d9d4b9572f8a67d09922a645043
Commit: ff95f3df54609d9d4b9572f8a67d09922a645043
Parent: fb8d47240246e20f864f0724a23a7220cd1c59ac
Author: Ingo Molnar [EMAIL PROTECTED]
AuthorDate: Thu Aug 9 11:16:49 2007 +0200
Committer:  Ingo Molnar [EMAIL PROTECTED]
CommitDate: Thu Aug 9 11:16:49 2007 +0200

sched: remove the 'u64 now' parameter from pick_next_task()

remove the 'u64 now' parameter from pick_next_task().

( identity transformation that causes no change in functionality. )

Signed-off-by: Ingo Molnar [EMAIL PROTECTED]
---
 kernel/sched.c |6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index b67a288..4f9f9e9 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3400,7 +3400,7 @@ static inline void schedule_debug(struct task_struct 
*prev)
  * Pick up the highest-prio task:
  */
 static inline struct task_struct *
-pick_next_task(struct rq *rq, struct task_struct *prev, u64 now)
+pick_next_task(struct rq *rq, struct task_struct *prev)
 {
struct sched_class *class;
struct task_struct *p;
@@ -3471,7 +3471,7 @@ need_resched_nonpreemptible:
idle_balance(cpu, rq);
 
prev-sched_class-put_prev_task(rq, prev, now);
-   next = pick_next_task(rq, prev, now);
+   next = pick_next_task(rq, prev);
 
sched_info_switch(prev, next);
 
@@ -5222,7 +5222,7 @@ static void migrate_dead_tasks(unsigned int dead_cpu)
if (!rq-nr_running)
break;
update_rq_clock(rq);
-   next = pick_next_task(rq, rq-curr, rq-clock);
+   next = pick_next_task(rq, rq-curr);
if (!next)
break;
migrate_dead(dead_cpu, next);
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


sched: remove the 'u64 now' parameter from -pick_next_task()

2007-08-09 Thread Linux Kernel Mailing List
Gitweb: 
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fb8d47240246e20f864f0724a23a7220cd1c59ac
Commit: fb8d47240246e20f864f0724a23a7220cd1c59ac
Parent: f02231e51a280f1a0fee4d03ad8f50048e06cced
Author: Ingo Molnar [EMAIL PROTECTED]
AuthorDate: Thu Aug 9 11:16:48 2007 +0200
Committer:  Ingo Molnar [EMAIL PROTECTED]
CommitDate: Thu Aug 9 11:16:48 2007 +0200

sched: remove the 'u64 now' parameter from -pick_next_task()

remove the 'u64 now' parameter from -pick_next_task().

( identity transformation that causes no change in functionality. )

Signed-off-by: Ingo Molnar [EMAIL PROTECTED]
---
 include/linux/sched.h   |2 +-
 kernel/sched.c  |4 ++--
 kernel/sched_fair.c |2 +-
 kernel/sched_idletask.c |2 +-
 kernel/sched_rt.c   |2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index c7815a6..c6ad407 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -861,7 +861,7 @@ struct sched_class {
 
void (*check_preempt_curr) (struct rq *rq, struct task_struct *p);
 
-   struct task_struct * (*pick_next_task) (struct rq *rq, u64 now);
+   struct task_struct * (*pick_next_task) (struct rq *rq);
void (*put_prev_task) (struct rq *rq, struct task_struct *p, u64 now);
 
unsigned long (*load_balance) (struct rq *this_rq, int this_cpu,
diff --git a/kernel/sched.c b/kernel/sched.c
index e51d75f..b67a288 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3410,14 +3410,14 @@ pick_next_task(struct rq *rq, struct task_struct *prev, 
u64 now)
 * the fair class we can call that function directly:
 */
if (likely(rq-nr_running == rq-cfs.nr_running)) {
-   p = fair_sched_class.pick_next_task(rq, now);
+   p = fair_sched_class.pick_next_task(rq);
if (likely(p))
return p;
}
 
class = sched_class_highest;
for ( ; ; ) {
-   p = class-pick_next_task(rq, now);
+   p = class-pick_next_task(rq);
if (p)
return p;
/*
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index fb4d614..0b23aaf 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -859,7 +859,7 @@ static void check_preempt_curr_fair(struct rq *rq, struct 
task_struct *p)
__check_preempt_curr_fair(cfs_rq, p-se, curr-se, gran);
 }
 
-static struct task_struct *pick_next_task_fair(struct rq *rq, u64 now)
+static struct task_struct *pick_next_task_fair(struct rq *rq)
 {
struct cfs_rq *cfs_rq = rq-cfs;
struct sched_entity *se;
diff --git a/kernel/sched_idletask.c b/kernel/sched_idletask.c
index f69e083..9f4c28f 100644
--- a/kernel/sched_idletask.c
+++ b/kernel/sched_idletask.c
@@ -13,7 +13,7 @@ static void check_preempt_curr_idle(struct rq *rq, struct 
task_struct *p)
resched_task(rq-idle);
 }
 
-static struct task_struct *pick_next_task_idle(struct rq *rq, u64 now)
+static struct task_struct *pick_next_task_idle(struct rq *rq)
 {
schedstat_inc(rq, sched_goidle);
 
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 60591e2..c0b0d62 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -73,7 +73,7 @@ static void check_preempt_curr_rt(struct rq *rq, struct 
task_struct *p)
resched_task(rq-curr);
 }
 
-static struct task_struct *pick_next_task_rt(struct rq *rq, u64 now)
+static struct task_struct *pick_next_task_rt(struct rq *rq)
 {
struct rt_prio_array *array = rq-rt.active;
struct task_struct *next;
-
To unsubscribe from this list: send the line unsubscribe git-commits-head in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html