summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-02-17 10:03:02 +0000
committertjr <tjr@FreeBSD.org>2003-02-17 10:03:02 +0000
commit6ebeaa8ec8a84c0fe2ebf0392ae3386ba9840a81 (patch)
tree70379db9c789bdee37bcb55df1faf55a4e2e6708 /sys/kern/init_main.c
parent5c29a640b86af6a1bd38d6186b82cba5e9c21065 (diff)
downloadFreeBSD-src-6ebeaa8ec8a84c0fe2ebf0392ae3386ba9840a81.zip
FreeBSD-src-6ebeaa8ec8a84c0fe2ebf0392ae3386ba9840a81.tar.gz
Use the proc lock to protect p_realtimer instead of Giant, and obtain
sched_lock around accesses to p_stats->p_timer[] to avoid a potential race with hardclock. getitimer(), setitimer() and the realitexpire() callout are now Giant-free.
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index d068ae0..d135c9b 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -385,7 +385,7 @@ proc0_init(void *dummy __unused)
bcopy("swapper", p->p_comm, sizeof ("swapper"));
- callout_init(&p->p_itcallout, 0);
+ callout_init(&p->p_itcallout, 1);
callout_init(&td->td_slpcallout, 1);
/* Create credentials. */
OpenPOWER on IntegriCloud