diff options
-rw-r--r-- | kernel/sched.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 5cd833bc2173..b81ed8703f70 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -1567,6 +1567,7 @@ int fastcall wake_up_state(struct task_struct *p, unsigned int state) | |||
1567 | return try_to_wake_up(p, state, 0); | 1567 | return try_to_wake_up(p, state, 0); |
1568 | } | 1568 | } |
1569 | 1569 | ||
1570 | static void task_running_tick(struct rq *rq, struct task_struct *p); | ||
1570 | /* | 1571 | /* |
1571 | * Perform scheduler related setup for a newly forked process p. | 1572 | * Perform scheduler related setup for a newly forked process p. |
1572 | * p is forked by current. | 1573 | * p is forked by current. |
@@ -1627,7 +1628,7 @@ void fastcall sched_fork(struct task_struct *p, int clone_flags) | |||
1627 | * runqueue lock is not a problem. | 1628 | * runqueue lock is not a problem. |
1628 | */ | 1629 | */ |
1629 | current->time_slice = 1; | 1630 | current->time_slice = 1; |
1630 | scheduler_tick(); | 1631 | task_running_tick(cpu_rq(cpu), current); |
1631 | } | 1632 | } |
1632 | local_irq_enable(); | 1633 | local_irq_enable(); |
1633 | put_cpu(); | 1634 | put_cpu(); |