diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-04-12 12:49:29 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-04-12 12:49:29 +0000 |
commit | 55b7ceed0ca2cd9984cd3d2a58ae84439a3510f0 (patch) | |
tree | da79f888feb519f98c27a7c3424b4c9266827293 /sys/dev/acpi/acpitz.c | |
parent | 93de1ab6042ecbf745ff778bc42998c0ef836f5e (diff) |
Get rid of acpi_s5 global variables; simply send SIGUSR2 instead of SUGUSR1
to tell init(8) to power down the machine.
ok krw@
Diffstat (limited to 'sys/dev/acpi/acpitz.c')
-rw-r--r-- | sys/dev/acpi/acpitz.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/acpi/acpitz.c b/sys/dev/acpi/acpitz.c index ccf7f841b25..725cf65db1a 100644 --- a/sys/dev/acpi/acpitz.c +++ b/sys/dev/acpi/acpitz.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpitz.c,v 1.22 2008/01/08 20:49:59 marco Exp $ */ +/* $OpenBSD: acpitz.c,v 1.23 2008/04/12 12:49:28 kettenis Exp $ */ /* * Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org> * Copyright (c) 2005 Marco Peereboom <marco@openbsd.org> @@ -250,7 +250,6 @@ acpitz_refresh(void *arg) { struct acpitz_softc *sc = arg; int i, perc; - extern int acpi_s5; dnprintf(30, "%s: %s: refresh\n", DEVNAME(sc), sc->sc_devnode->parent->name); @@ -266,8 +265,7 @@ acpitz_refresh(void *arg) /* do critical shutdown */ printf("%s: Critical temperature, shutting down\n", DEVNAME(sc)); - acpi_s5 = 1; - psignal(initproc, SIGUSR1); + psignal(initproc, SIGUSR2); } if (sc->sc_hot != -1 && sc->sc_hot <= sc->sc_tmp) { printf("%s: _HOT temperature\n", DEVNAME(sc)); |