git: 27cb2610ef0b - main - powerpc/intr: Minor cleanup
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Dec 2025 20:03:15 UTC
The branch main has been updated by jhibbits:
URL: https://cgit.FreeBSD.org/src/commit/?id=27cb2610ef0ba6871f2649658778fb83179c0b2e
commit 27cb2610ef0ba6871f2649658778fb83179c0b2e
Author: Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2025-12-20 19:53:37 +0000
Commit: Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2025-12-20 20:02:51 +0000
powerpc/intr: Minor cleanup
Use MTX_SYSINIT() instead of rolling our own.
---
sys/powerpc/powerpc/intr_machdep.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/sys/powerpc/powerpc/intr_machdep.c b/sys/powerpc/powerpc/intr_machdep.c
index 6e8cb4febf28..daab391bb800 100644
--- a/sys/powerpc/powerpc/intr_machdep.c
+++ b/sys/powerpc/powerpc/intr_machdep.c
@@ -159,13 +159,7 @@ intrcnt_setname(const char *name, int index)
INTRNAME_LEN - 1, name);
}
-static void
-intr_init(void *dummy __unused)
-{
-
- mtx_init(&intr_table_lock, "intr sources lock", NULL, MTX_DEF);
-}
-SYSINIT(intr_init, SI_SUB_INTR, SI_ORDER_FIRST, intr_init, NULL);
+MTX_SYSINIT(intr_table_lock, &intr_table_lock, "intr sources lock", MTX_DEF);
static void
intr_init_sources(void *arg __unused)