diff options
author | jhb <jhb@FreeBSD.org> | 2005-08-18 17:09:16 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-08-18 17:09:16 +0000 |
commit | 8836b740443ae2416ddf03dc0b21e90fa621a949 (patch) | |
tree | 9b58607243979d79b75f50c30c0cd819e6a6c395 /sys/pci/if_sfreg.h | |
parent | d72dbf2615f0bc4b8462056a71521522cbff04ea (diff) | |
download | FreeBSD-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/pci/if_sfreg.h')
-rw-r--r-- | sys/pci/if_sfreg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/if_sfreg.h b/sys/pci/if_sfreg.h index 53c30f9..652f804 100644 --- a/sys/pci/if_sfreg.h +++ b/sys/pci/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; |