Module Name:    src
Committed By:   pgoyette
Date:           Fri Jul  3 21:18:40 UTC 2009

Modified Files:
        src/sys/dev/acpi: acpi_tz.c

Log Message:
Remove an unused mutex.  This was left-over from two years ago when
driver was updated to sysmon_envsys V2;  a simple_lock was turned into
a mutex.  But the only code that ever used the simple_lock was removed
so the mutex can also be removed.

Noticed by njoly@


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/acpi/acpi_tz.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_tz.c
diff -u src/sys/dev/acpi/acpi_tz.c:1.43 src/sys/dev/acpi/acpi_tz.c:1.44
--- src/sys/dev/acpi/acpi_tz.c:1.43	Fri Jul  3 15:34:10 2009
+++ src/sys/dev/acpi/acpi_tz.c	Fri Jul  3 21:18:40 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi_tz.c,v 1.43 2009/07/03 15:34:10 pgoyette Exp $ */
+/* $NetBSD: acpi_tz.c,v 1.44 2009/07/03 21:18:40 pgoyette Exp $ */
 
 /*
  * Copyright (c) 2003 Jared D. McNeill <jmcne...@invisible.ca>
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.43 2009/07/03 15:34:10 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.44 2009/07/03 21:18:40 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -41,7 +41,6 @@
 #include <sys/device.h>
 #include <sys/callout.h>
 #include <sys/proc.h>
-#include <sys/mutex.h>
 #include <dev/sysmon/sysmonvar.h>
 
 #include <dev/acpi/acpica.h>
@@ -106,7 +105,6 @@
 	struct callout sc_callout;
 	struct sysmon_envsys *sc_sme;
 	envsys_data_t sc_sensor;
-	kmutex_t sc_mtx;
 	int sc_active;		/* active cooling level */
 	int sc_flags;
 	int sc_rate;		/* tz poll rate */
@@ -160,8 +158,6 @@
 	ACPI_STATUS rv;
 	ACPI_INTEGER v;
 
-	mutex_init(&sc->sc_mtx, MUTEX_DEFAULT, IPL_NONE);
-
 #if 0
 	sc->sc_flags = ATZ_F_VERBOSE;
 #endif

Reply via email to