Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/acpi Don't hold up boot: defer acpibat(4) inquiry un...



details:   https://anonhg.NetBSD.org/src/rev/5315cec9971c
branches:  trunk
changeset: 365276:5315cec9971c
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri Aug 10 17:11:56 2018 +0000

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

ok jmcneill@

diffstat:

 sys/dev/acpi/acpi_bat.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7ea74672d08a -r 5315cec9971c sys/dev/acpi/acpi_bat.c
--- a/sys/dev/acpi/acpi_bat.c   Fri Aug 10 17:05:22 2018 +0000
+++ b/sys/dev/acpi/acpi_bat.c   Fri Aug 10 17:11:56 2018 +0000
@@ -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 @@
        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.



Home | Main Index | Thread Index | Old Index