From: robert Date: Fri, 5 Aug 2022 12:52:35 +0000 (+0000) Subject: put ci_mutex_level inside DIAGNOSTIC X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2a756d2ed04ce4f05a7b50d464a7d302cd2e3983;p=openbsd put ci_mutex_level inside DIAGNOSTIC --- diff --git a/sys/arch/arm64/arm64/cpu.c b/sys/arch/arm64/arm64/cpu.c index 59eee39d0d9..329521f1e64 100644 --- a/sys/arch/arm64/arm64/cpu.c +++ b/sys/arch/arm64/arm64/cpu.c @@ -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 @@ -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;