From owner-cvs-src-old@FreeBSD.ORG Tue Dec 16 16:04:45 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 089B7106564A for ; Tue, 16 Dec 2008 16:04:45 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E94A18FC19 for ; Tue, 16 Dec 2008 16:04:44 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mBGG4iw4083554 for ; Tue, 16 Dec 2008 16:04:44 GMT (envelope-from mav@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mBGG4i2g083553 for cvs-src-old@freebsd.org; Tue, 16 Dec 2008 16:04:44 GMT (envelope-from mav@repoman.freebsd.org) Message-Id: <200812161604.mBGG4i2g083553@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to mav@repoman.freebsd.org using -f From: Alexander Motin Date: Tue, 16 Dec 2008 16:04:40 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/ata ata-pci.c ata-pci.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 16:04:45 -0000 mav 2008-12-16 16:04:40 UTC FreeBSD src repository Modified files: sys/dev/ata ata-pci.c ata-pci.h Log: SVN rev 186182 on 2008-12-16 16:04:40Z by mav 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 shows me 3% of time spent by atapci0 on pure network load due to IRQ sharing with em0. Revision Changes Path 1.131 +19 -11 src/sys/dev/ata/ata-pci.c 1.97 +1 -0 src/sys/dev/ata/ata-pci.h