]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add locking to scd(4) and mark MPSAFE.
authorjhb <jhb@FreeBSD.org>
Tue, 18 Nov 2014 22:02:37 +0000 (22:02 +0000)
committerjhb <jhb@FreeBSD.org>
Tue, 18 Nov 2014 22:02:37 +0000 (22:02 +0000)
commit79f30ca7deb6593675ab04592023345ddb46cc29
tree292ffb3f6990b8ea5e3bb752bd5331c887cdad62
parent5ca041b97a5c74720ff63132eb6533fe86563e03
Add locking to scd(4) and mark MPSAFE.
- Actually use existing per-softc mutex.
- Use mutex in cdev routines and remove D_NEEDGIANT.
- Use callout(9) instead of timeout(9).
- Don't check for impossible conditions (e.g. SCDINIT being clear).
- Use bus_*() instead of bus_space_*().

Tested by: no one
sys/dev/scd/scd.c
sys/dev/scd/scd_isa.c
sys/dev/scd/scdvar.h