summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-aout
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-04-14 15:56:10 +0000
committerimp <imp@FreeBSD.org>2005-04-14 15:56:10 +0000
commit4b37bbd4869afe14bdd327fff059627a656722c0 (patch)
tree30bfa717c389db87975a63c122f10ca0ed88cebf /libexec/rtld-aout
parent0a2e28c772635dd50961d92b702e895f1ea5b2ca (diff)
downloadFreeBSD-src-4b37bbd4869afe14bdd327fff059627a656722c0.zip
FreeBSD-src-4b37bbd4869afe14bdd327fff059627a656722c0.tar.gz
In ppsintr, we needed ppsdev to get to the softc and nothing else.
Save a memory dereference in the ISR by passing this in directly. Calling pps_capture is MP safe for all other operations on struct pps_state, so there's no need to aquire the lock before we do this, even from a fast ISR. Avoid dereferencing sc->ppbus until after pps_capture is called as well. These actions reduce somewhat the cache effects that cause variance in interrupt times. On an especially slow test machine (300MHz Cyrix GXm), this reduces the interrupt latency about about 10% (from 21us to 19us) and helps a little with the variance (although most of the variance seems to be caused by lots of interrupt masking). This also happens fixes one or two of bde's style issues.
Diffstat (limited to 'libexec/rtld-aout')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud