summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2003-06-15 00:31:24 +0000
committerdavidxu <davidxu@FreeBSD.org>2003-06-15 00:31:24 +0000
commitabb4420bbe55ce526dd8d7eb8ac3e1b33969d3fa (patch)
treef1ad1d6af931a255911ca3bbb68ac9677e8e30c0 /sys/kern/kern_fork.c
parent11be88d0438fcd4af13ed8006b4e293451dc780c (diff)
downloadFreeBSD-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.c6
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);
OpenPOWER on IntegriCloud