Date: Thu, 26 Jan 2017 13:48:45 +0000 (UTC) From: Sean Bruno <sbruno@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r312815 - head/sys/kern Message-ID: <201701261348.v0QDmjaV019562@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sbruno Date: Thu Jan 26 13:48:45 2017 New Revision: 312815 URL: https://svnweb.freebsd.org/changeset/base/312815 Log: A few more style bugs lying around in here. Submitted by: bde Modified: head/sys/kern/subr_gtaskqueue.c Modified: head/sys/kern/subr_gtaskqueue.c ============================================================================== --- head/sys/kern/subr_gtaskqueue.c Thu Jan 26 13:46:47 2017 (r312814) +++ head/sys/kern/subr_gtaskqueue.c Thu Jan 26 13:48:45 2017 (r312815) @@ -630,6 +630,7 @@ taskqgroup_find(struct taskqgroup *qgrou return (idx); } + /* * smp_started is unusable since it is not set for UP kernels or even for * SMP kernels when there is 1 CPU. This is usually handled by adding a @@ -643,6 +644,7 @@ taskqgroup_find(struct taskqgroup *qgrou * SI_ORDER_ANY and unclearly after the CPUs are started. It would be * simpler for adjustment to pass a flag indicating if it is delayed. */ + static int tqg_smp_started; static void @@ -670,7 +672,7 @@ taskqgroup_attach(struct taskqgroup *qgr qgroup->tqg_queue[qid].tgc_cnt++; LIST_INSERT_HEAD(&qgroup->tqg_queue[qid].tgc_tasks, gtask, gt_list); gtask->gt_taskqueue = qgroup->tqg_queue[qid].tgc_taskq; - if (irq != -1 && tqg_smp_started ) { + if (irq != -1 && tqg_smp_started) { gtask->gt_cpu = qgroup->tqg_queue[qid].tgc_cpu; CPU_ZERO(&mask); CPU_SET(qgroup->tqg_queue[qid].tgc_cpu, &mask);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701261348.v0QDmjaV019562>