Module Name: src Committed By: pgoyette Date: Wed Mar 24 12:18:54 UTC 2010
Modified Files: src/sys/dev/acpi: acpi_bat.c Log Message: Set the SME_INIT_REFRESH flag so that the sensors' values (including charge's max_value) are available when the event monitors are created. To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/sys/dev/acpi/acpi_bat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/acpi/acpi_bat.c diff -u src/sys/dev/acpi/acpi_bat.c:1.94 src/sys/dev/acpi/acpi_bat.c:1.95 --- src/sys/dev/acpi/acpi_bat.c:1.94 Mon Mar 22 15:08:35 2010 +++ src/sys/dev/acpi/acpi_bat.c Wed Mar 24 12:18:54 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_bat.c,v 1.94 2010/03/22 15:08:35 jruoho Exp $ */ +/* $NetBSD: acpi_bat.c,v 1.95 2010/03/24 12:18:54 pgoyette 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.94 2010/03/22 15:08:35 jruoho Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_bat.c,v 1.95 2010/03/24 12:18:54 pgoyette Exp $"); #include <sys/param.h> #include <sys/condvar.h> @@ -721,7 +721,7 @@ sc->sc_sme->sme_cookie = dv; sc->sc_sme->sme_refresh = acpibat_refresh; sc->sc_sme->sme_class = SME_CLASS_BATTERY; - sc->sc_sme->sme_flags = SME_POLL_ONLY; + sc->sc_sme->sme_flags = SME_POLL_ONLY | SME_INIT_REFRESH; sc->sc_sme->sme_get_limits = acpibat_get_limits; acpibat_update_info(dv);