DragonFly- master sys/dev/disk/nata ata-chipset.c ata-pci.c ata-pci.h

Hasso Tepper hasso at crater.dragonflybsd.org
Wed Dec 17 19:13:30 PST 2008

commit e0e6ca4b314f94d53cfb2bd835e27fa08fd78a78
Author: Hasso Tepper <hasso at estpak.ee>
Date:   Thu Dec 18 05:03:47 2008 +0200

    Call ata_legacy() only once on attach and save it's result.
    Scanning PCI configuration registers (which are not going to change) on
    every interrupt looks expensive, especially when interrupt is shared.
    Profiling (in FreeBSD) shows 3% of time spent by atapci0 on pure network
    load due to IRQ sharing with em0.
    Obtained-from: FreeBSD

Summary of changes:
 sys/dev/disk/nata/ata-chipset.c |    2 +-
 sys/dev/disk/nata/ata-pci.c     |   28 ++++++++++++++++++----------
 sys/dev/disk/nata/ata-pci.h     |    1 +
 3 files changed, 20 insertions(+), 11 deletions(-)


DragonFly BSD source repository

More information about the Commits mailing list