summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kse.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-08-19 17:51:11 +0000
committersam <sam@FreeBSD.org>2003-08-19 17:51:11 +0000
commit59ff2ad5c76dd93b883ff0f8a7fdd96a30e6a19a (patch)
treeab83000d32d028d24443ab237035b625ff7b65dd /sys/kern/kern_kse.c
parentfbca8f8acd8e3d733f33a81456516634845ffe76 (diff)
downloadFreeBSD-src-59ff2ad5c76dd93b883ff0f8a7fdd96a30e6a19a.zip
FreeBSD-src-59ff2ad5c76dd93b883ff0f8a7fdd96a30e6a19a.tar.gz
Change instances of callout_init that specify MPSAFE behaviour to
use CALLOUT_MPSAFE instead of "1" for the second parameter. This does not change the behaviour; it just makes the intent more clear.
Diffstat (limited to 'sys/kern/kern_kse.c')
-rw-r--r--sys/kern/kern_kse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c
index 2f93b1e..2af36c4 100644
--- a/sys/kern/kern_kse.c
+++ b/sys/kern/kern_kse.c
@@ -1337,7 +1337,7 @@ thread_link(struct thread *td, struct ksegrp *kg)
td->td_kse = NULL;
LIST_INIT(&td->td_contested);
- callout_init(&td->td_slpcallout, 1);
+ callout_init(&td->td_slpcallout, CALLOUT_MPSAFE);
TAILQ_INSERT_HEAD(&p->p_threads, td, td_plist);
TAILQ_INSERT_HEAD(&kg->kg_threads, td, td_kglist);
p->p_numthreads++;
OpenPOWER on IntegriCloud