Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jun 2009 17:16:27 +0000 (UTC)
From:      Jack F Vogel <jfv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194978 - head/sys/dev/ixgbe
Message-ID:  <200906251716.n5PHGRir058121@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906251716.n5PHGRir058121>