Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2020 17:51:26 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r360500 - stable/11/sys/kern
Message-ID:  <202004301751.03UHpQDb065855@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 			}
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004301751.03UHpQDb065855>