diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-06-24 05:34:36 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-06-24 05:34:36 +0000 |
commit | 8919a22510bb2d5e5a6af011d229ac38e966a1a0 (patch) | |
tree | c5ffaca5117bee9e089dc3fc5c042d12f0e24d58 /sys/dev/pci/arc.c | |
parent | 741fb47166c6a7ffa0aea3684329acedb201ef7c (diff) |
rework sensor tasks to use the kernels generic workq rather than a special
kernel thread of its own. the api has changed (which will be fixed in the
manpage shortly) so all the users of sensor tasks that i can find have
been fixed too.
noone tested, so its going in to force people to run with it.
"put it in" deraadt@
Diffstat (limited to 'sys/dev/pci/arc.c')
-rw-r--r-- | sys/dev/pci/arc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/arc.c b/sys/dev/pci/arc.c index a651bc44365..bb349144315 100644 --- a/sys/dev/pci/arc.c +++ b/sys/dev/pci/arc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arc.c,v 1.63 2007/05/29 22:17:50 todd Exp $ */ +/* $OpenBSD: arc.c,v 1.64 2007/06/24 05:34:35 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -1564,7 +1564,7 @@ arc_create_sensors(void *xsc, void *arg) sensor_attach(&sc->sc_sensordev, &sc->sc_sensors[i]); } - if (sensor_task_register(sc, arc_refresh_sensors, 120) != 0) + if (sensor_task_register(sc, arc_refresh_sensors, 120) == NULL) goto bad; sensordev_install(&sc->sc_sensordev); |