Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi initialize a simple_lock in softc.
details: https://anonhg.NetBSD.org/src/rev/3ffb746c4c02
branches: trunk
changeset: 543206:3ffb746c4c02
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Feb 19 11:32:13 2003 +0000
description:
initialize a simple_lock in softc.
diffstat:
sys/dev/acpi/acpi_acad.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 341cae189394 -r 3ffb746c4c02 sys/dev/acpi/acpi_acad.c
--- a/sys/dev/acpi/acpi_acad.c Wed Feb 19 11:23:53 2003 +0000
+++ b/sys/dev/acpi/acpi_acad.c Wed Feb 19 11:32:13 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_acad.c,v 1.7 2003/02/16 16:50:09 tshiozak Exp $ */
+/* $NetBSD: acpi_acad.c,v 1.8 2003/02/19 11:32:13 yamt Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_acad.c,v 1.7 2003/02/16 16:50:09 tshiozak Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_acad.c,v 1.8 2003/02/19 11:32:13 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -159,6 +159,7 @@
printf(": ACPI AC Adapter\n");
sc->sc_node = aa->aa_node;
+ simple_lock_init(&sc->sc_lock);
rv = AcpiInstallNotifyHandler(sc->sc_node->ad_handle,
ACPI_DEVICE_NOTIFY, acpiacad_notify_handler, sc);
Home |
Main Index |
Thread Index |
Old Index