aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-08-09 05:16:48 -0400
committerIngo Molnar <mingo@elte.hu>2007-08-09 05:16:48 -0400
commitf02231e51a280f1a0fee4d03ad8f50048e06cced (patch)
treebecd8bf748828e3dfe34f73df11d260fd6300026
parentfd390f6a04f22fb457d6fd1855964f79536525de (diff)
sched: remove the 'u64 now' parameter from ->dequeue_task()
remove the 'u64 now' parameter from ->dequeue_task(). ( identity transformation that causes no change in functionality. ) Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--include/linux/sched.h3
-rw-r--r--kernel/sched.c2
-rw-r--r--kernel/sched_fair.c3
-rw-r--r--kernel/sched_idletask.c2
-rw-r--r--kernel/sched_rt.c3
5 files changed, 5 insertions, 8 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index b11dedfbab6e..c7815a6b70e0 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -856,8 +856,7 @@ struct sched_class {
856 struct sched_class *next; 856 struct sched_class *next;
857 857
858 void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup); 858 void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup);
859 void (*dequeue_task) (struct rq *rq, struct task_struct *p, 859 void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep);
860 int sleep, u64 now);
861 void (*yield_task) (struct rq *rq, struct task_struct *p); 860 void (*yield_task) (struct rq *rq, struct task_struct *p);
862 861
863 void (*check_preempt_curr) (struct rq *rq, struct task_struct *p); 862 void (*check_preempt_curr) (struct rq *rq, struct task_struct *p);
diff --git a/kernel/sched.c b/kernel/sched.c
index 43ae1566b8fc..e51d75f4b4d7 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -859,7 +859,7 @@ enqueue_task(struct rq *rq, struct task_struct *p, int wakeup, u64 now)
859static void 859static void
860dequeue_task(struct rq *rq, struct task_struct *p, int sleep, u64 now) 860dequeue_task(struct rq *rq, struct task_struct *p, int sleep, u64 now)
861{ 861{
862 p->sched_class->dequeue_task(rq, p, sleep, now); 862 p->sched_class->dequeue_task(rq, p, sleep);
863 p->se.on_rq = 0; 863 p->se.on_rq = 0;
864} 864}
865 865
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 81db9626b7ed..fb4d614af2c3 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -800,8 +800,7 @@ static void enqueue_task_fair(struct rq *rq, struct task_struct *p, int wakeup)
800 * decreased. We remove the task from the rbtree and 800 * decreased. We remove the task from the rbtree and
801 * update the fair scheduling stats: 801 * update the fair scheduling stats:
802 */ 802 */
803static void 803static void dequeue_task_fair(struct rq *rq, struct task_struct *p, int sleep)
804dequeue_task_fair(struct rq *rq, struct task_struct *p, int sleep, u64 now)
805{ 804{
806 struct cfs_rq *cfs_rq; 805 struct cfs_rq *cfs_rq;
807 struct sched_entity *se = &p->se; 806 struct sched_entity *se = &p->se;
diff --git a/kernel/sched_idletask.c b/kernel/sched_idletask.c
index dc9e1068911f..f69e083e0d96 100644
--- a/kernel/sched_idletask.c
+++ b/kernel/sched_idletask.c
@@ -25,7 +25,7 @@ static struct task_struct *pick_next_task_idle(struct rq *rq, u64 now)
25 * message if some code attempts to do it: 25 * message if some code attempts to do it:
26 */ 26 */
27static void 27static void
28dequeue_task_idle(struct rq *rq, struct task_struct *p, int sleep, u64 now) 28dequeue_task_idle(struct rq *rq, struct task_struct *p, int sleep)
29{ 29{
30 spin_unlock_irq(&rq->lock); 30 spin_unlock_irq(&rq->lock);
31 printk(KERN_ERR "bad: scheduling from the idle thread!\n"); 31 printk(KERN_ERR "bad: scheduling from the idle thread!\n");
diff --git a/kernel/sched_rt.c b/kernel/sched_rt.c
index 1edaa99e0d3d..60591e2512b1 100644
--- a/kernel/sched_rt.c
+++ b/kernel/sched_rt.c
@@ -36,8 +36,7 @@ static void enqueue_task_rt(struct rq *rq, struct task_struct *p, int wakeup)
36/* 36/*
37 * Adding/removing a task to/from a priority array: 37 * Adding/removing a task to/from a priority array:
38 */ 38 */
39static void 39static void dequeue_task_rt(struct rq *rq, struct task_struct *p, int sleep)
40dequeue_task_rt(struct rq *rq, struct task_struct *p, int sleep, u64 now)
41{ 40{
42 struct rt_prio_array *array = &rq->rt.active; 41 struct rt_prio_array *array = &rq->rt.active;
43 42