Index: kern_task.c =================================================================== RCS file: /cvs/src/sys/kern/kern_task.c,v retrieving revision 1.12 diff -u -p -r1.12 kern_task.c --- kern_task.c 1 Nov 2014 23:58:28 -0000 1.12 +++ kern_task.c 23 Jan 2015 09:29:42 -0000 @@ -50,6 +50,9 @@ struct taskq taskq_sys = { TAILQ_HEAD_INITIALIZER(taskq_sys.tq_worklist) }; +struct taskq *const systq = &taskq_sys; + +#ifdef MULTIPROCESSOR struct taskq taskq_sys_mp = { TQ_S_CREATED, 0, @@ -60,8 +63,10 @@ struct taskq taskq_sys_mp = { TAILQ_HEAD_INITIALIZER(taskq_sys_mp.tq_worklist) }; -struct taskq *const systq = &taskq_sys; struct taskq *const systqmp = &taskq_sys_mp; +#else +struct taskq *const systqmp = &taskq_sys; +#endif void taskq_init(void); /* called in init_main.c */ void taskq_create_thread(void *); @@ -72,7 +77,9 @@ void taskq_init(void) { kthread_create_deferred(taskq_create_thread, systq); +#ifdef MULTIPROCESSOR kthread_create_deferred(taskq_create_thread, systqmp); +#endif } struct taskq *