Author: mmacy
Date: Sat May 19 04:05:36 2018
New Revision: 333839
URL: https://svnweb.freebsd.org/changeset/base/333839

Log:
  getnextevent: put variable only used by KTR under ifdef KTR

Modified:
  head/sys/kern/kern_clocksource.c

Modified: head/sys/kern/kern_clocksource.c
==============================================================================
--- head/sys/kern/kern_clocksource.c    Sat May 19 04:04:44 2018        
(r333838)
+++ head/sys/kern/kern_clocksource.c    Sat May 19 04:05:36 2018        
(r333839)
@@ -272,18 +272,22 @@ getnextevent(void)
 #ifdef SMP
        int     cpu;
 #endif
+#ifdef KTR
        int     c;
 
+       c = -1;
+#endif
        state = DPCPU_PTR(timerstate);
        event = state->nextevent;
-       c = -1;
 #ifdef SMP
        if ((timer->et_flags & ET_FLAGS_PERCPU) == 0) {
                CPU_FOREACH(cpu) {
                        state = DPCPU_ID_PTR(cpu, timerstate);
                        if (event > state->nextevent) {
                                event = state->nextevent;
+#ifdef KTR
                                c = cpu;
+#endif
                        }
                }
        }
_______________________________________________
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