put ci_mutex_level inside DIAGNOSTIC
authorrobert <robert@openbsd.org>
Fri, 5 Aug 2022 12:52:35 +0000 (12:52 +0000)
committerrobert <robert@openbsd.org>
Fri, 5 Aug 2022 12:52:35 +0000 (12:52 +0000)
sys/arch/arm64/arm64/cpu.c

index 59eee39..329521f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: cpu.c,v 1.65 2022/07/13 09:28:18 kettenis Exp $       */
+/*     $OpenBSD: cpu.c,v 1.66 2022/08/05 12:52:35 robert Exp $ */
 
 /*
  * Copyright (c) 2016 Dale Rahn <drahn@dalerahn.com>
@@ -1012,7 +1012,9 @@ cpu_resume_secondary(struct cpu_info *ci)
        ci->ci_idepth = 0;
        ci->ci_flags &= ~CPUF_PRESENT;
 
+#ifdef DIAGNOSTIC
        ci->ci_mutex_level = 0;
+#endif
        ci->ci_ttbr1 = 0;
 
        p = ci->ci_schedstate.spc_idleproc;