From d632f88e20cc0a43f9e0d82bac2a231198590927 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Thu, 15 Aug 2019 16:04:22 +0000 Subject: [PATCH] Enable ACPICA mutex debugging in INVARIANTS case. This lets us detect lock order reversal in ACPICA code to avoid deadlock. --- sys/contrib/dev/acpica/include/platform/acfreebsd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/contrib/dev/acpica/include/platform/acfreebsd.h b/sys/contrib/dev/acpica/include/platform/acfreebsd.h index aaeecfb3cfa7..46de7c830bed 100644 --- a/sys/contrib/dev/acpica/include/platform/acfreebsd.h +++ b/sys/contrib/dev/acpica/include/platform/acfreebsd.h @@ -203,6 +203,10 @@ #define DEBUGGER_THREADING 0 /* integrated with DDB */ +#ifdef INVARIANTS +#define ACPI_MUTEX_DEBUG +#endif + #else /* _KERNEL */ #if __STDC_HOSTED__