diff options
author | np <np@FreeBSD.org> | 2010-07-09 00:36:35 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2010-07-09 00:36:35 +0000 |
commit | acfd54a769718ec766faf9b67cca9d6f5f1abe6e (patch) | |
tree | 371aea38a0fd650b58b92b23b53cf5425cd2f893 /sys/dev/cxgb/common | |
parent | 1ed3d6a6059a7cc33ae3020b8c3fb81e41508b6b (diff) | |
download | FreeBSD-src-acfd54a769718ec766faf9b67cca9d6f5f1abe6e.zip FreeBSD-src-acfd54a769718ec766faf9b67cca9d6f5f1abe6e.tar.gz |
Eliminate ext_intr_task. The "slow" interrupt handler is already
running on the adapter's task queue. Just do what the task does
instead of enqueueing it.
MFC after: 3 days
Diffstat (limited to 'sys/dev/cxgb/common')
-rw-r--r-- | sys/dev/cxgb/common/cxgb_common.h | 1 | ||||
-rw-r--r-- | sys/dev/cxgb/common/cxgb_t3_hw.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/cxgb/common/cxgb_common.h b/sys/dev/cxgb/common/cxgb_common.h index d523a1a..549d5a9 100644 --- a/sys/dev/cxgb/common/cxgb_common.h +++ b/sys/dev/cxgb/common/cxgb_common.h @@ -701,7 +701,6 @@ void t3_port_intr_enable(adapter_t *adapter, int idx); void t3_port_intr_disable(adapter_t *adapter, int idx); void t3_port_intr_clear(adapter_t *adapter, int idx); int t3_slow_intr_handler(adapter_t *adapter); -int t3_phy_intr_handler(adapter_t *adapter); void t3_link_changed(adapter_t *adapter, int port_id); int t3_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc); diff --git a/sys/dev/cxgb/common/cxgb_t3_hw.c b/sys/dev/cxgb/common/cxgb_t3_hw.c index 4c28a04..e98b83f 100644 --- a/sys/dev/cxgb/common/cxgb_t3_hw.c +++ b/sys/dev/cxgb/common/cxgb_t3_hw.c @@ -2180,7 +2180,7 @@ static int mac_intr_handler(adapter_t *adap, unsigned int idx) /* * Interrupt handler for PHY events. */ -int t3_phy_intr_handler(adapter_t *adapter) +static int phy_intr_handler(adapter_t *adapter) { u32 i, cause = t3_read_reg(adapter, A_T3DBG_INT_CAUSE); @@ -2262,7 +2262,7 @@ int t3_slow_intr_handler(adapter_t *adapter) if (cause & F_XGMAC0_1) mac_intr_handler(adapter, 1); if (cause & F_T3DBG) - t3_os_ext_intr_handler(adapter); + phy_intr_handler(adapter); /* Clear the interrupts just processed. */ t3_write_reg(adapter, A_PL_INT_CAUSE0, cause); |