Index: sys/arch/i386/i386/locore.S
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/i386/locore.S,v
retrieving revision 1.200
diff -p -u -r1.200 locore.S
--- sys/arch/i386/i386/locore.S	6 May 2025 04:34:58 -0000	1.200
+++ sys/arch/i386/i386/locore.S	29 Jun 2025 13:14:26 -0000
@@ -356,7 +356,9 @@ END(tmpgdt)
 ENTRY(start)
 #ifndef XENPV
 
+#ifdef BOOT_DURATION
 	getstarttsc
+#endif
 
 	/* Warm boot */
 	movw	$0x1234,0x472
@@ -1208,7 +1210,9 @@ END(start)
 #ifndef XENPV
 /* entry point for Xen PVH */
 ENTRY(start_pvh)
+#ifdef BOOT_DURATION
 	getstarttsc
+#endif
 	/* Xen doesn't start us with a valid gdt */
 	movl    $RELOC(gdtdesc_xenpvh), %eax
 	lgdt    (%eax)
