summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixgbe/ixgbe.c
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2009-06-25 17:16:26 +0000
committerjfv <jfv@FreeBSD.org>2009-06-25 17:16:26 +0000
commitaac0d4166c52cf6bea43992365dd2b5655672024 (patch)
tree3d4efe34a70221c2087614a338297d1875c28844 /sys/dev/ixgbe/ixgbe.c
parent7dc0587c35464689686b26643e8af38320f76e39 (diff)
downloadFreeBSD-src-aac0d4166c52cf6bea43992365dd2b5655672024.zip
FreeBSD-src-aac0d4166c52cf6bea43992365dd2b5655672024.tar.gz
Change intr_bind to bus_bind_intr, thanks to John Baldwin
for pointing out this simplification.
Diffstat (limited to 'sys/dev/ixgbe/ixgbe.c')
-rw-r--r--sys/dev/ixgbe/ixgbe.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c
index a39f418..c6e63ec 100644
--- a/sys/dev/ixgbe/ixgbe.c
+++ b/sys/dev/ixgbe/ixgbe.c
@@ -2152,13 +2152,12 @@ ixgbe_allocate_msix(struct adapter *adapter)
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 *adapter)
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);
OpenPOWER on IntegriCloud