Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Set the SME_INIT_REFRESH flag so that the senso...
details: https://anonhg.NetBSD.org/src/rev/20883148e1b5
branches: trunk
changeset: 753369:20883148e1b5
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Wed Mar 24 12:18:54 2010 +0000
description:
Set the SME_INIT_REFRESH flag so that the sensors' values (including
charge's max_value) are available when the event monitors are created.
diffstat:
sys/dev/acpi/acpi_bat.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a1ecdcb1dd5f -r 20883148e1b5 sys/dev/acpi/acpi_bat.c
--- a/sys/dev/acpi/acpi_bat.c Wed Mar 24 12:15:54 2010 +0000
+++ b/sys/dev/acpi/acpi_bat.c Wed Mar 24 12:18:54 2010 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index