summaryrefslogtreecommitdiffstats
path: root/sys/dev/sf/if_sfreg.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-08-18 17:09:16 +0000
committerjhb <jhb@FreeBSD.org>2005-08-18 17:09:16 +0000
commit8836b740443ae2416ddf03dc0b21e90fa621a949 (patch)
tree9b58607243979d79b75f50c30c0cd819e6a6c395 /sys/dev/sf/if_sfreg.h
parentd72dbf2615f0bc4b8462056a71521522cbff04ea (diff)
downloadFreeBSD-src-8836b740443ae2416ddf03dc0b21e90fa621a949.zip
FreeBSD-src-8836b740443ae2416ddf03dc0b21e90fa621a949.tar.gz
Fixup locking for sf(4) and mark MPSAFE:
- Add locked variants of start, init, and ifmedia_upd. - Use callout_* instead of timeout/untimeout. - Don't recurse on the driver lock. - Fixup locking in ioctl. - Lock the driver lock in the ifmedia handlers rather than across ifmedia_ioctl(). Tested by: brueffer MFC after: 3 days
Diffstat (limited to 'sys/dev/sf/if_sfreg.h')
-rw-r--r--sys/dev/sf/if_sfreg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sf/if_sfreg.h b/sys/dev/sf/if_sfreg.h
index 53c30f9..652f804 100644
--- a/sys/dev/sf/if_sfreg.h
+++ b/sys/dev/sf/if_sfreg.h
@@ -1043,7 +1043,7 @@ struct sf_softc {
int sf_tx_cnt;
u_int8_t sf_link;
int sf_if_flags;
- struct callout_handle sf_stat_ch;
+ struct callout sf_stat_callout;
struct mtx sf_mtx;
#ifdef DEVICE_POLLING
int rxcycles;
OpenPOWER on IntegriCloud