From 6ce4d2f51a51d0b643cef2918b92238bdeb9a572 Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 31 Oct 2005 21:37:27 +0000 Subject: - Use callout_*() to manage the callout and make it MPSAFE. - Fix locking in detach(), we only need to lock across vr_stop(). Tested by: Mike Tancsa mike at sentex dot net MFC after: 1 week --- sys/pci/if_vrreg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/pci/if_vrreg.h') diff --git a/sys/pci/if_vrreg.h b/sys/pci/if_vrreg.h index 7b43c0b..1ef3756 100644 --- a/sys/pci/if_vrreg.h +++ b/sys/pci/if_vrreg.h @@ -465,7 +465,7 @@ struct vr_softc { u_int8_t vr_flags; /* See VR_F_* below */ struct vr_list_data *vr_ldata; struct vr_chain_data vr_cdata; - struct callout_handle vr_stat_ch; + struct callout vr_stat_callout; struct mtx vr_mtx; int suspended; /* if 1, sleeping/detaching */ #ifdef DEVICE_POLLING -- cgit v1.1