diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-12-14 23:37:35 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-12-14 23:37:35 +0000 |
| commit | 201b0ea8fdf5a8a4275ad528b94f263edc01c2bb (patch) | |
| tree | 074c04b0152797b2bd2dc4e5bd3ac24c10606ade /sys | |
| parent | c7c781634f600ff9d4a113cccf343bb03cd6eca2 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_fork.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 28f0970fe2d4..bb52a34b8ef0 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -760,6 +760,7 @@ fork_exit(callout, arg, frame) struct thread *td = curthread; struct proc *p = td->td_proc; + td->td_kse->ke_oncpu = PCPU_GET(cpuid); /* * Setup the sched_lock state so that we can release it. */ @@ -769,13 +770,12 @@ fork_exit(callout, arg, frame) * XXX: We really shouldn't have to do this. */ mtx_intr_enable(&sched_lock); - mtx_unlock_spin(&sched_lock); - -#ifdef SMP + CTR3(KTR_PROC, "fork_exit: new proc %p (pid %d, %s)", p, p->p_pid, + p->p_comm); if (PCPU_GET(switchtime.tv_sec) == 0) microuptime(PCPU_PTR(switchtime)); PCPU_SET(switchticks, ticks); -#endif + mtx_unlock_spin(&sched_lock); /* * cpu_set_fork_handler intercepts this function call to |
