Author: sbruno
Date: Wed Jan 25 15:54:44 2017
New Revision: 312760
URL: https://svnweb.freebsd.org/changeset/base/312760

Log:
  Replace overlooked smp_started checks and variable use in a print
  with the now used tqg_smp_started.
  
  Submitted by: bde

Modified:
  head/sys/kern/subr_gtaskqueue.c

Modified: head/sys/kern/subr_gtaskqueue.c
==============================================================================
--- head/sys/kern/subr_gtaskqueue.c     Wed Jan 25 15:52:03 2017        
(r312759)
+++ head/sys/kern/subr_gtaskqueue.c     Wed Jan 25 15:54:44 2017        
(r312760)
@@ -740,7 +740,7 @@ taskqgroup_attach_cpu(struct taskqgroup 
 
        CPU_ZERO(&mask);
        CPU_SET(cpu, &mask);
-       if (irq != -1 && (smp_started || mp_ncpus == 1))
+       if (irq != -1 && tqg_smp_started)
                intr_setaffinity(irq, &mask);
        return (0);
 }
@@ -849,8 +849,8 @@ _taskqgroup_adjust(struct taskqgroup *qg
 
        if (cnt < 1 || cnt * stride > mp_ncpus || !tqg_smp_started) {
                printf("%s: failed cnt: %d stride: %d "
-                      "mp_ncpus: %d smp_started: %d\n",
-                       __func__, cnt, stride, mp_ncpus, smp_started);
+                   "mp_ncpus: %d tqg_smp_started: %d\n",
+                   __func__, cnt, stride, mp_ncpus, tqg_smp_started);
                return (EINVAL);
        }
        if (qgroup->tqg_adjusting) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to