diff options
author | yongari <yongari@FreeBSD.org> | 2011-02-19 01:37:28 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2011-02-19 01:37:28 +0000 |
commit | 86ddfa132ffe86ade789d5a9efd60033845fd8a4 (patch) | |
tree | 832328c2f1f00b54d7b7d1149aefb10210d20f55 /contrib/llvm/lib/ExecutionEngine/MCJIT/TargetSelect.cpp | |
parent | 7d573030437bc17da394ad067c98bcfa229f7dfb (diff) | |
download | FreeBSD-src-86ddfa132ffe86ade789d5a9efd60033845fd8a4.zip FreeBSD-src-86ddfa132ffe86ade789d5a9efd60033845fd8a4.tar.gz |
Rearrange interrupt handler a bit and remove forever loop.
Previously dc(4) always checked whether there is pending interrupts
and this consumed a lot of CPU cycles in interrupt handler. Limit
the number of processing for TX/RX frames to 16. Also allow sending
frames in the loop not to starve TX under high RX load.
Reading DC_ISR register should be protected with driver lock,
otherwise interrupt handler could be run(e.g. link state change)
before the completion of dc_init_locked().
While I'm here remove unneeded code.
Diffstat (limited to 'contrib/llvm/lib/ExecutionEngine/MCJIT/TargetSelect.cpp')
0 files changed, 0 insertions, 0 deletions