提交 fd390f6a 编写于 作者: I Ingo Molnar

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

remove the 'u64 now' parameter from ->enqueue_task().

( identity transformation that causes no change in functionality. )
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 f1e14ef6
...@@ -855,8 +855,7 @@ struct sched_domain; ...@@ -855,8 +855,7 @@ struct sched_domain;
struct sched_class { struct sched_class {
struct sched_class *next; struct sched_class *next;
void (*enqueue_task) (struct rq *rq, struct task_struct *p, void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup);
int wakeup, u64 now);
void (*dequeue_task) (struct rq *rq, struct task_struct *p, void (*dequeue_task) (struct rq *rq, struct task_struct *p,
int sleep, u64 now); int sleep, u64 now);
void (*yield_task) (struct rq *rq, struct task_struct *p); void (*yield_task) (struct rq *rq, struct task_struct *p);
......
...@@ -852,7 +852,7 @@ static void ...@@ -852,7 +852,7 @@ static void
enqueue_task(struct rq *rq, struct task_struct *p, int wakeup, u64 now) enqueue_task(struct rq *rq, struct task_struct *p, int wakeup, u64 now)
{ {
sched_info_queued(p); sched_info_queued(p);
p->sched_class->enqueue_task(rq, p, wakeup, now); p->sched_class->enqueue_task(rq, p, wakeup);
p->se.on_rq = 1; p->se.on_rq = 1;
} }
......
...@@ -782,8 +782,7 @@ static inline int is_same_group(struct task_struct *curr, struct task_struct *p) ...@@ -782,8 +782,7 @@ static inline int is_same_group(struct task_struct *curr, struct task_struct *p)
* increased. Here we update the fair scheduling stats and * increased. Here we update the fair scheduling stats and
* then put the task into the rbtree: * then put the task into the rbtree:
*/ */
static void static void enqueue_task_fair(struct rq *rq, struct task_struct *p, int wakeup)
enqueue_task_fair(struct rq *rq, struct task_struct *p, int wakeup, u64 now)
{ {
struct cfs_rq *cfs_rq; struct cfs_rq *cfs_rq;
struct sched_entity *se = &p->se; struct sched_entity *se = &p->se;
......
...@@ -25,8 +25,7 @@ static inline void update_curr_rt(struct rq *rq) ...@@ -25,8 +25,7 @@ static inline void update_curr_rt(struct rq *rq)
curr->se.exec_start = rq->clock; curr->se.exec_start = rq->clock;
} }
static void static void enqueue_task_rt(struct rq *rq, struct task_struct *p, int wakeup)
enqueue_task_rt(struct rq *rq, struct task_struct *p, int wakeup, u64 now)
{ {
struct rt_prio_array *array = &rq->rt.active; struct rt_prio_array *array = &rq->rt.active;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册