diff options
author | jhb <jhb@FreeBSD.org> | 2003-04-17 22:25:35 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-04-17 22:25:35 +0000 |
commit | 313b87d41a1d51ef3fe051877963244bd707f52d (patch) | |
tree | e370fcb508245da455f7eff3634ad080e17a4a17 /sys/kern/kern_intr.c | |
parent | ab40c1468e69d8fda6ba05450835eadb678218b6 (diff) | |
download | FreeBSD-src-313b87d41a1d51ef3fe051877963244bd707f52d.zip FreeBSD-src-313b87d41a1d51ef3fe051877963244bd707f52d.tar.gz |
Add some locking in for a few proc and thread fields.
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r-- | sys/kern/kern_intr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index 195977d..5a1a0c2 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -197,14 +197,15 @@ ithread_create(struct ithd **ithread, int vector, int flags, return (error); } td = FIRST_THREAD_IN_PROC(p); /* XXXKSE */ + mtx_lock_spin(&sched_lock); td->td_ksegrp->kg_pri_class = PRI_ITHD; td->td_priority = PRI_MAX_ITHD; TD_SET_IWAIT(td); + mtx_unlock_spin(&sched_lock); ithd->it_td = td; td->td_ithd = ithd; if (ithread != NULL) *ithread = ithd; - CTR2(KTR_INTR, "%s: created %s", __func__, ithd->it_name); return (0); } |