diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-12-23 14:51:18 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-12-23 14:51:18 +0000 |
commit | 730c6e2d00e4aa3c820a5362489e79782d0988c9 (patch) | |
tree | a9f5059cb32bcad6b991517a1c09754d52ca3d9d /sys/kern | |
parent | f9377ea41fc1fad90d0782954c14ec7b6e2af7e4 (diff) |
One "sbar" taskq is enough.
ok visa@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_sched.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/kern/kern_sched.c b/sys/kern/kern_sched.c index 9236d9edd98..d4ffa25bb24 100644 --- a/sys/kern/kern_sched.c +++ b/sys/kern/kern_sched.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sched.c,v 1.40 2015/12/17 22:14:40 kettenis Exp $ */ +/* $OpenBSD: kern_sched.c,v 1.41 2015/12/23 14:51:17 kettenis Exp $ */ /* * Copyright (c) 2007, 2008 Artur Grabowski <art@openbsd.org> * @@ -98,13 +98,6 @@ sched_init_cpu(struct cpu_info *ci) */ cpuset_init_cpu(ci); cpuset_add(&sched_all_cpus, ci); - -#ifdef MULTIPROCESSOR - sbartq = taskq_create("sbar", 1, IPL_NONE, - TASKQ_MPSAFE | TASKQ_CANTSLEEP); - if (sbartq == NULL) - panic("unable to create sbar taskq"); -#endif } void @@ -233,6 +226,12 @@ sched_exit(struct proc *p) void sched_init_runqueues(void) { +#ifdef MULTIPROCESSOR + sbartq = taskq_create("sbar", 1, IPL_NONE, + TASKQ_MPSAFE | TASKQ_CANTSLEEP); + if (sbartq == NULL) + panic("unable to create sbar taskq"); +#endif } void |