From 8919a22510bb2d5e5a6af011d229ac38e966a1a0 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sun, 24 Jun 2007 05:34:36 +0000 Subject: 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@ --- sys/dev/pci/arc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci/arc.c') 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 @@ -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); -- cgit v1.2.3