Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Remove unused locking variables.



details:   https://anonhg.NetBSD.org/src/rev/2738ca9dae1a
branches:  trunk
changeset: 750430:2738ca9dae1a
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu Dec 31 10:07:13 2009 +0000

description:
Remove unused locking variables.

ok pgoyette@, jmcneill@

diffstat:

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

diffs (37 lines):

diff -r d98fd0a717d6 -r 2738ca9dae1a sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c       Thu Dec 31 10:02:51 2009 +0000
+++ b/sys/dev/acpi/acpi.c       Thu Dec 31 10:07:13 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi.c,v 1.138 2009/12/31 10:02:51 jruoho Exp $        */
+/*     $NetBSD: acpi.c,v 1.139 2009/12/31 10:07:13 jruoho Exp $        */
 
 /*-
  * Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.138 2009/12/31 10:02:51 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.139 2009/12/31 10:07:13 jruoho Exp $");
 
 #include "opt_acpi.h"
 #include "opt_pcifixup.h"
@@ -158,8 +158,6 @@
 /*
  * Locking stuff.
  */
-static kmutex_t acpi_slock;
-static int acpi_locked;
 extern kmutex_t acpi_interrupt_list_mtx;
 
 /*
@@ -225,9 +223,7 @@
                panic("acpi_probe: ACPI has already been probed");
        beenhere = 1;
 
-       mutex_init(&acpi_slock, MUTEX_DEFAULT, IPL_NONE);
        mutex_init(&acpi_interrupt_list_mtx, MUTEX_DEFAULT, IPL_NONE);
-       acpi_locked = 0;
 
        /*
         * Start up ACPICA.



Home | Main Index | Thread Index | Old Index