aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2003-02-17 10:03:02 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2003-02-17 10:03:02 +0000
commit96d7f8ef4663a90a8826c0b5ab56e9036dcb8506 (patch)
tree70379db9c789bdee37bcb55df1faf55a4e2e6708 /sys/kern/init_main.c
parent58a3c27384e79f4a71995252fd590f2a6aea4d1f (diff)
downloadsrc-96d7f8ef4663a90a8826c0b5ab56e9036dcb8506.tar.gz
src-96d7f8ef4663a90a8826c0b5ab56e9036dcb8506.zip
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.
Notes
Notes: svn path=/head/; revision=111034
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 d068ae07aa97..d135c9ba422b 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. */