Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Detach evcnt(9) before the states.
details: https://anonhg.NetBSD.org/src/rev/aca30db68b2f
branches: trunk
changeset: 762810:aca30db68b2f
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Mar 01 13:38:45 2011 +0000
description:
Detach evcnt(9) before the states.
diffstat:
sys/dev/acpi/acpi_cpu.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r c7251d728003 -r aca30db68b2f sys/dev/acpi/acpi_cpu.c
--- a/sys/dev/acpi/acpi_cpu.c Tue Mar 01 12:47:43 2011 +0000
+++ b/sys/dev/acpi/acpi_cpu.c Tue Mar 01 13:38:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_cpu.c,v 1.33 2011/03/01 05:57:04 jruoho Exp $ */
+/* $NetBSD: acpi_cpu.c,v 1.34 2011/03/01 13:38:45 jruoho Exp $ */
/*-
* Copyright (c) 2010, 2011 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_cpu.c,v 1.33 2011/03/01 05:57:04 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_cpu.c,v 1.34 2011/03/01 13:38:45 jruoho Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -183,6 +183,8 @@
int rv = 0;
sc->sc_cold = true;
+
+ acpicpu_evcnt_detach(self);
acpi_deregister_notify(sc->sc_node);
if ((sc->sc_flags & ACPICPU_FLAG_C) != 0)
@@ -204,7 +206,6 @@
return rv;
mutex_destroy(&sc->sc_mtx);
- acpicpu_evcnt_detach(self);
sc->sc_node->ad_device = NULL;
Home |
Main Index |
Thread Index |
Old Index