Author: bz
Date: Sat Mar 28 15:07:19 2015
New Revision: 280786
URL: https://svnweb.freebsd.org/changeset/base/280786

Log:
  Try to unbreak !SMP kernels  broken in r280785 by using the proper macros
  to access cc_cpu.

Modified:
  head/sys/kern/kern_timeout.c

Modified: head/sys/kern/kern_timeout.c
==============================================================================
--- head/sys/kern/kern_timeout.c        Sat Mar 28 12:50:24 2015        
(r280785)
+++ head/sys/kern/kern_timeout.c        Sat Mar 28 15:07:19 2015        
(r280786)
@@ -267,7 +267,7 @@ callout_callwheel_init(void *dummy)
         * XXX: Clip callout to result of previous function of maxusers
         * maximum 384.  This is still huge, but acceptable.
         */
-       memset(cc_cpu, 0, sizeof(cc_cpu));
+       memset(CC_CPU(0), 0, sizeof(cc_cpu));
        ncallout = imin(16 + maxproc + maxfiles, 18508);
        TUNABLE_INT_FETCH("kern.ncallout", &ncallout);
 
@@ -954,7 +954,7 @@ callout_reset_sbt_on(struct callout *c, 
        if (cpu == -1) {
                ignore_cpu = 1;
        } else if ((cpu >= MAXCPU) ||
-                  (cc_cpu[cpu].cc_inited == 0)) {
+                  ((CC_CPU(cpu))->cc_inited == 0)) {
                /* Invalid CPU spec */
                panic("Invalid CPU in callout %d", cpu);
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to