From owner-svn-src-all@FreeBSD.ORG Thu Jun 25 17:16:27 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F8351065672; Thu, 25 Jun 2009 17:16:27 +0000 (UTC) (envelope-from jfv@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2E0A08FC27; Thu, 25 Jun 2009 17:16:27 +0000 (UTC) (envelope-from jfv@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5PHGRLC058123; Thu, 25 Jun 2009 17:16:27 GMT (envelope-from jfv@svn.freebsd.org) Received: (from jfv@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5PHGRir058121; Thu, 25 Jun 2009 17:16:27 GMT (envelope-from jfv@svn.freebsd.org) Message-Id: <200906251716.n5PHGRir058121@svn.freebsd.org> From: Jack F Vogel Date: Thu, 25 Jun 2009 17:16:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194978 - head/sys/dev/ixgbe X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 17:16:27 -0000 Author: jfv Date: Thu Jun 25 17:16:26 2009 New Revision: 194978 URL: http://svn.freebsd.org/changeset/base/194978 Log: Change intr_bind to bus_bind_intr, thanks to John Baldwin for pointing out this simplification. Modified: head/sys/dev/ixgbe/ixgbe.c Modified: head/sys/dev/ixgbe/ixgbe.c ============================================================================== --- head/sys/dev/ixgbe/ixgbe.c Thu Jun 25 17:14:06 2009 (r194977) +++ head/sys/dev/ixgbe/ixgbe.c Thu Jun 25 17:16:26 2009 (r194978) @@ -2152,13 +2152,12 @@ ixgbe_allocate_msix(struct adapter *adap return (error); } txr->msix = vector; -#if defined(__i386__) || defined(__amd64__) /* ** Bind the msix vector, and thus the ** ring to the corresponding cpu. */ - intr_bind(rman_get_start(txr->res), i); -#endif + bus_bind_intr(dev, txr->res, i); + TASK_INIT(&txr->tx_task, 0, ixgbe_handle_tx, txr); txr->tq = taskqueue_create_fast("ixgbe_txq", M_NOWAIT, taskqueue_thread_enqueue, &txr->tq); @@ -2189,13 +2188,12 @@ ixgbe_allocate_msix(struct adapter *adap rxr->msix = vector; /* used in local timer */ adapter->rx_mask |= (u64)(1 << vector); -#if defined(__i386__) || defined(__amd64__) /* ** Bind the msix vector, and thus the ** ring to the corresponding cpu. */ - intr_bind(rman_get_start(rxr->res), i); -#endif + bus_bind_intr(dev, rxr->res, i); + TASK_INIT(&rxr->rx_task, 0, ixgbe_handle_rx, rxr); rxr->tq = taskqueue_create_fast("ixgbe_rxq", M_NOWAIT, taskqueue_thread_enqueue, &rxr->tq);