Author: mav
Date: Thu Apr 30 17:51:26 2020
New Revision: 360500
URL: https://svnweb.freebsd.org/changeset/base/360500

Log:
  MFC r333839 (by mmacy): getnextevent: put variable only used by KTR under 
ifdef KTR

Modified:
  stable/11/sys/kern/kern_clocksource.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/kern_clocksource.c
==============================================================================
--- stable/11/sys/kern/kern_clocksource.c       Thu Apr 30 15:45:01 2020        
(r360499)
+++ stable/11/sys/kern/kern_clocksource.c       Thu Apr 30 17:51:26 2020        
(r360500)
@@ -270,18 +270,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
                        }
                }
        }
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to