diff options
author | 2006-05-28 01:33:50 +0000 | |
---|---|---|
committer | 2006-05-28 01:33:50 +0000 | |
commit | 7a67db76dd056adc7bf322132dc4a836b9479f75 (patch) | |
tree | cc6d75336a710565f40c5bf210c705b813e68f34 /sys/kern/kern_sensors.c | |
parent | rename mpi_complete to mpi_poll and make it call mpi_start itself. (diff) | |
download | wireguard-openbsd-7a67db76dd056adc7bf322132dc4a836b9479f75.tar.xz wireguard-openbsd-7a67db76dd056adc7bf322132dc4a836b9479f75.zip |
Include device id in hotplug events. This will be used by ntpd to check
sensors on attach/detach. hotplugd changes following in a minute.
ok henning.
Diffstat (limited to 'sys/kern/kern_sensors.c')
-rw-r--r-- | sys/kern/kern_sensors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_sensors.c b/sys/kern/kern_sensors.c index 9e78e263186..c8951d9154a 100644 --- a/sys/kern/kern_sensors.c +++ b/sys/kern/kern_sensors.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sensors.c,v 1.10 2006/05/28 00:24:00 henning Exp $ */ +/* $OpenBSD: kern_sensors.c,v 1.11 2006/05/28 01:33:50 mk Exp $ */ /* * Copyright (c) 2005 David Gwynne <dlg@openbsd.org> @@ -70,7 +70,7 @@ sensor_add(struct sensor *sens) splx(s); #if NHOTPLUG > 0 - hotplug_device_attach(DV_SENSOR, sens->device); + hotplug_device_attach(DV_SENSOR, sens->device, sens->num); #endif } @@ -85,7 +85,7 @@ sensor_del(struct sensor *sens) splx(s); #if NHOTPLUG > 0 - hotplug_device_detach(DV_SENSOR, sens->device); + hotplug_device_detach(DV_SENSOR, sens->device, sens->num); #endif } |