mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
powerpc/intr: Minor cleanup
Use MTX_SYSINIT() instead of rolling our own.
This commit is contained in:
parent
dd5a48f957
commit
27cb2610ef
1 changed files with 1 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue