Don't hold up boot: defer acpibat(4) inquiry until threads are running.

ok jmcneill@
This commit is contained in:
riastradh 2018-08-10 17:11:56 +00:00
parent fdd87a7d9a
commit de7ebfbfbb
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: acpi_bat.c,v 1.115 2015/04/23 23:23:00 pgoyette Exp $ */
/* $NetBSD: acpi_bat.c,v 1.116 2018/08/10 17:11:56 riastradh Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -75,7 +75,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: acpi_bat.c,v 1.115 2015/04/23 23:23:00 pgoyette Exp $");
__KERNEL_RCSID(0, "$NetBSD: acpi_bat.c,v 1.116 2018/08/10 17:11:56 riastradh Exp $");
#include <sys/param.h>
#include <sys/condvar.h>
@ -252,7 +252,7 @@ acpibat_attach(device_t parent, device_t self, void *aux)
if (sc->sc_sensor == NULL)
return;
acpibat_init_envsys(self);
config_interrupts(self, acpibat_init_envsys);
/*
* If this is ever seen, the driver should be extended.