From abd9fc2824903fe1c710cba31e446d89a8bb4037 Mon Sep 17 00:00:00 2001 From: dlg Date: Sun, 24 Jun 2007 05:34:35 +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/softraid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/softraid.c') diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index a169e83f7b0..4f16fcaf6e3 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.81 2007/06/06 23:06:02 deraadt Exp $ */ +/* $OpenBSD: softraid.c,v 1.82 2007/06/24 05:34:35 dlg Exp $ */ /* * Copyright (c) 2007 Marco Peereboom * @@ -2362,7 +2362,7 @@ sr_create_sensors(struct sr_discipline *sd) sensor_attach(&sd->sd_vol.sv_sensordev, &sd->sd_vol.sv_sensor); if (sc->sc_sensors_running == 0) { - if (sensor_task_register(sc, sr_refresh_sensors, 10) != 0) + if (sensor_task_register(sc, sr_refresh_sensors, 10) == NULL) goto bad; sc->sc_sensors_running = 1; } -- cgit v1.2.3-59-g8ed1b