summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@earth2.(none)>2002-02-11 22:47:52 +0100
committerIngo Molnar <mingo@earth2.(none)>2002-02-11 22:47:52 +0100
commit7e54bc75751cfb3c3eb5da7bdc900b8adcc2cda4 (patch)
treee7c1f9f373f4ede645ebf963a0448acb70a512f8 /kernel/fork.c
parent14d39718ea2be95cc7197c8c94bf56142d0a306c (diff)
merge to the -K3 scheduler.
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 94ccd2aead70..3ba556b47705 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -749,14 +749,11 @@ int do_fork(unsigned long clone_flags, unsigned long stack_start,
* runqueue lock is not a problem.
*/
current->time_slice = 1;
- scheduler_tick(current);
+ scheduler_tick(0, 0);
}
p->sleep_timestamp = jiffies;
__restore_flags(flags);
- if (p->policy == SCHED_OTHER)
- p->prio = MAX_PRIO - 1 - ((MAX_PRIO - 1 - p->prio) * 1) / 3;
-
/*
* Ok, add it to the run-queues and make it
* visible to the rest of the system.