summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ohci_pci.c
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-08-02 15:31:10 +0000
committerscottl <scottl@FreeBSD.org>2004-08-02 15:31:10 +0000
commitfb7f90d7ec95dc92cb81c6e9b8768b90f31666ad (patch)
tree57d5dd81c1fe2b9225077e5da7f427bd97983dec /sys/dev/usb/ohci_pci.c
parent6d68eec474cd4f3a1ce83211d9bd75025c3a62a9 (diff)
downloadFreeBSD-src-fb7f90d7ec95dc92cb81c6e9b8768b90f31666ad.zip
FreeBSD-src-fb7f90d7ec95dc92cb81c6e9b8768b90f31666ad.tar.gz
Optimize intr_execute_handlers() by combining the pic_disable_source() and
pic_eoi_source() into one call. This halves the number of spinlock operations and indirect function calls in the normal case of handling a normal (ithread) interrupt. Optimize the atpic and ioapic drivers to use inlines where appropriate in supporting the intr_execute_handlers() change. This knocks 900ns, or roughly 1350 cycles, off of the time spent servicing an interrupt in the common case on my 1.5GHz P4 uniprocessor system. SMP systems likely won't see as much of a gain due to the ioapic being more efficient than the atpic. I'll investigate porting this to amd64 soon. Reviewed by: jhb
Diffstat (limited to 'sys/dev/usb/ohci_pci.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud