summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-02-20 05:26:15 +0000
committerjhb <jhb@FreeBSD.org>2001-02-20 05:26:15 +0000
commit27efeb0d3097def44db638ca1b56b51d59d27262 (patch)
tree1f8a102953b3fe1c9808c071ae97fe452a9e22c0 /sys/powerpc/aim
parent186e24ad6b2494564362a9d8c0824ab7c38db682 (diff)
downloadFreeBSD-src-27efeb0d3097def44db638ca1b56b51d59d27262.zip
FreeBSD-src-27efeb0d3097def44db638ca1b56b51d59d27262.tar.gz
- Don't call clear_resched() in userret(), instead, clear the resched flag
in mi_switch() just before calling cpu_switch() so that the first switch after a resched request will satisfy the request. - While I'm at it, move a few things into mi_switch() and out of cpu_switch(), specifically set the p_oncpu and p_lastcpu members of proc in mi_switch(), and handle the sched_lock state change across a context switch in mi_switch(). - Since cpu_switch() no longer handles the sched_lock state change, we have to setup an initial state for sched_lock in fork_exit() before we release it.
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r--sys/powerpc/aim/vm_machdep.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c
index 851b1878..e9e6540 100644
--- a/sys/powerpc/aim/vm_machdep.c
+++ b/sys/powerpc/aim/vm_machdep.c
@@ -210,13 +210,6 @@ cpu_fork(p1, p2, flags)
up->u_pcb.pcb_context[2] = (u_long) p2; /* s2: a1 */
up->u_pcb.pcb_context[7] =
(u_int64_t)switch_trampoline; /* ra: assembly magic */
-
- /*
- * Clear the saved recursion count for sched_lock
- * since the child needs only one count which is
- * released in switch_trampoline.
- */
- up->u_pcb.pcb_schednest = 0;
}
}
OpenPOWER on IntegriCloud