|
@@ -2343,6 +2343,8 @@ void wake_up_new_task(struct task_struct *p)
|
|
struct rq *rq;
|
|
struct rq *rq;
|
|
|
|
|
|
raw_spin_lock_irqsave(&p->pi_lock, flags);
|
|
raw_spin_lock_irqsave(&p->pi_lock, flags);
|
|
|
|
+ /* Initialize new task's runnable average */
|
|
|
|
+ init_entity_runnable_average(&p->se);
|
|
#ifdef CONFIG_SMP
|
|
#ifdef CONFIG_SMP
|
|
/*
|
|
/*
|
|
* Fork balancing, do it here and not earlier because:
|
|
* Fork balancing, do it here and not earlier because:
|
|
@@ -2352,8 +2354,6 @@ void wake_up_new_task(struct task_struct *p)
|
|
set_task_cpu(p, select_task_rq(p, task_cpu(p), SD_BALANCE_FORK, 0));
|
|
set_task_cpu(p, select_task_rq(p, task_cpu(p), SD_BALANCE_FORK, 0));
|
|
#endif
|
|
#endif
|
|
|
|
|
|
- /* Initialize new task's runnable average */
|
|
|
|
- init_entity_runnable_average(&p->se);
|
|
|
|
rq = __task_rq_lock(p);
|
|
rq = __task_rq_lock(p);
|
|
activate_task(rq, p, 0);
|
|
activate_task(rq, p, 0);
|
|
p->on_rq = TASK_ON_RQ_QUEUED;
|
|
p->on_rq = TASK_ON_RQ_QUEUED;
|