diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-06-15 00:31:24 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-06-15 00:31:24 +0000 |
commit | abb4420bbe55ce526dd8d7eb8ac3e1b33969d3fa (patch) | |
tree | f1ad1d6af931a255911ca3bbb68ac9677e8e30c0 /sys/kern/kern_fork.c | |
parent | 11be88d0438fcd4af13ed8006b4e293451dc780c (diff) | |
download | FreeBSD-src-abb4420bbe55ce526dd8d7eb8ac3e1b33969d3fa.zip FreeBSD-src-abb4420bbe55ce526dd8d7eb8ac3e1b33969d3fa.tar.gz |
Rename P_THREADED to P_SA. P_SA means a process is using scheduler
activations.
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 4c514df..4045feb 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -259,7 +259,7 @@ fork1(td, flags, pages, procp) * other side with the expectation that the process is about to * exec. */ - if (p1->p_flag & P_THREADED) { + if (p1->p_flag & P_SA) { /* * Idle the other threads for a second. * Since the user space is copied, it must remain stable. @@ -717,7 +717,7 @@ again: /* * If other threads are waiting, let them continue now */ - if (p1->p_flag & P_THREADED) { + if (p1->p_flag & P_SA) { PROC_LOCK(p1); thread_single_end(); PROC_UNLOCK(p1); @@ -732,7 +732,7 @@ again: fail: sx_xunlock(&allproc_lock); uma_zfree(proc_zone, newproc); - if (p1->p_flag & P_THREADED) { + if (p1->p_flag & P_SA) { PROC_LOCK(p1); thread_single_end(); PROC_UNLOCK(p1); |