diff options
| author | Mike Smith <msmith@FreeBSD.org> | 2002-02-25 02:21:22 +0000 |
|---|---|---|
| committer | Mike Smith <msmith@FreeBSD.org> | 2002-02-25 02:21:22 +0000 |
| commit | 5da19f398a6173b45656f7119de0d026a1cdd168 (patch) | |
| tree | 6af39f20b940d74387167ecd77b421b5b0f16086 /sys/dev/acpica | |
| parent | 391a2becf119235471047fabab35d36523784b0c (diff) | |
Notes
Diffstat (limited to 'sys/dev/acpica')
| -rw-r--r-- | sys/dev/acpica/acpi_thermal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi_thermal.c b/sys/dev/acpica/acpi_thermal.c index 709e1337ce2b6..92902af6ede69 100644 --- a/sys/dev/acpica/acpi_thermal.c +++ b/sys/dev/acpica/acpi_thermal.c @@ -31,6 +31,8 @@ #include <sys/param.h> #include <sys/kernel.h> #include <sys/kthread.h> +#include <sys/lock.h> +#include <sys/mutex.h> #include <sys/bus.h> #include <sys/proc.h> #include <sys/reboot.h> @@ -780,6 +782,8 @@ acpi_tz_thread(void *arg) for (;;) { tsleep(&acpi_tz_proc, PZERO, "nothing", hz * acpi_tz_polling_rate); + mtx_lock(&Giant); + if (devcount == 0) devclass_get_devices(acpi_tz_devclass, &devs, &devcount); @@ -787,5 +791,7 @@ acpi_tz_thread(void *arg) for (i = 0; i < devcount; i++) acpi_tz_timeout(device_get_softc(devs[i])); ACPI_UNLOCK; + + mtx_unlock(&Giant); } } |
