summaryrefslogtreecommitdiffstats
path: root/contrib/diff/lib/strtoimax.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-08-13 21:29:34 +0000
committerjhb <jhb@FreeBSD.org>2012-08-13 21:29:34 +0000
commit9bb02710c1bf485e546d9cd4f3ea231d9b5bc3f7 (patch)
tree4a840044734adb9f40c1b3bf6fdee9b417aebeb0 /contrib/diff/lib/strtoimax.c
parent09a614af9c9c7f3f8f7c1cabbdfc5ffa704835d1 (diff)
downloadFreeBSD-src-9bb02710c1bf485e546d9cd4f3ea231d9b5bc3f7.zip
FreeBSD-src-9bb02710c1bf485e546d9cd4f3ea231d9b5bc3f7.tar.gz
Add locking to the twe(4) driver and make it MPSAFE:
- Add per-controller configuration (sx) and I/O (mutex) locks. The configuration lock protects the relationship of volumes and drives while the I/O lock protects access to the controller's registers and the main I/O path. - Remove some checks for M_WAITOK malloc()'s failing. - Remove the explicit bus space tag/handle from the softc and use bus_*() rather than bus_space_*(). - Reuse the existing new-bus sysctl context instead of creating a new one. - Remove compat shims for FreeBSD 4.x. - Use pci_enable_busmaster() rather than doing it by hand, and rely on bus_alloc_resource() to enable PCI I/O decoding. Tested by: Mike Tancsa mike sentex net Reviewed by: scottl (partially) MFC after: 1 month
Diffstat (limited to 'contrib/diff/lib/strtoimax.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud