]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add locking to the ahb(4) driver and mark it MPSAFE.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 15 Oct 2012 16:05:02 +0000 (16:05 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 15 Oct 2012 16:05:02 +0000 (16:05 +0000)
commite40cc6afc410638f9990b0cfad494f9b58a3c129
tree1da33970649f31fe1754677c6d76743ccc71588f
parent0e87317a92fadea0f89a23c963d52c40f9f506a6
Add locking to the ahb(4) driver and mark it MPSAFE.
- Use device_printf() and device_get_unit() instead of storing the unit
  number in the softc.
- Remove use of explicit bus space handles and tags.
- Compare pointers against NULL.
- Let new-bus allocate a softc rather than doing it by hand.

Tested by: no one
sys/dev/ahb/ahb.c
sys/dev/ahb/ahbreg.h