]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Optimize out a couple of places where com_addr() is used twice in a row,
authorpeter <peter@FreeBSD.org>
Sun, 9 May 1999 16:56:38 +0000 (16:56 +0000)
committerpeter <peter@FreeBSD.org>
Sun, 9 May 1999 16:56:38 +0000 (16:56 +0000)
commit4889b510f02afdb3319fab2fee369ecc90c95ca2
treed4fab0b789a7bbb3d4efe2d371e0a6d3bb33e93a
parent3e9a4fabc345d4d09660888dc13b2a5515b3b35b
Optimize out a couple of places where com_addr() is used twice in a row,
although this is pretty trivial.  devclass_get_softc() is a tad more
expensive than the old com_addr() implementation.  If Bruce is really
worried about the cost of this, it could always be changed so that the
softc pointer is stored in a local array again.
sys/dev/sio/sio.c
sys/isa/sio.c