diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-05-29 04:35:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-03 15:00:24 -0400 |
commit | 17b889290a184b52ee394c31dd5a52b8c1b3456d (patch) | |
tree | 2e8889673a9f26b1a1afb2291ede6032eeadd1bb /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | a5e8b5056ea8762e67c9fa980c8db48009ed2a67 (diff) |
iwlwifi: move tx reclaim flow into iwl-tx
This patch
1. moves TX reclaim flow into iwl-tx
2. separates command queue and tx queue reclaim flow
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index cfabcb00f331..dc9f3b683795 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -1159,7 +1159,7 @@ static void iwl5000_rx_reply_tx(struct iwl_priv *priv, | |||
1159 | index = iwl_queue_dec_wrap(scd_ssn & 0xff, txq->q.n_bd); | 1159 | index = iwl_queue_dec_wrap(scd_ssn & 0xff, txq->q.n_bd); |
1160 | IWL_DEBUG_TX_REPLY("Retry scheduler reclaim scd_ssn " | 1160 | IWL_DEBUG_TX_REPLY("Retry scheduler reclaim scd_ssn " |
1161 | "%d index %d\n", scd_ssn , index); | 1161 | "%d index %d\n", scd_ssn , index); |
1162 | freed = iwl4965_tx_queue_reclaim(priv, txq_id, index); | 1162 | freed = iwl_tx_queue_reclaim(priv, txq_id, index); |
1163 | priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; | 1163 | priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; |
1164 | 1164 | ||
1165 | if (iwl_queue_space(&txq->q) > txq->q.low_mark && | 1165 | if (iwl_queue_space(&txq->q) > txq->q.low_mark && |
@@ -1191,7 +1191,7 @@ static void iwl5000_rx_reply_tx(struct iwl_priv *priv, | |||
1191 | IWL_DEBUG_TX_REPLY("Tx queue reclaim %d\n", index); | 1191 | IWL_DEBUG_TX_REPLY("Tx queue reclaim %d\n", index); |
1192 | #ifdef CONFIG_IWL4965_HT | 1192 | #ifdef CONFIG_IWL4965_HT |
1193 | if (index != -1) { | 1193 | if (index != -1) { |
1194 | int freed = iwl4965_tx_queue_reclaim(priv, txq_id, index); | 1194 | int freed = iwl_tx_queue_reclaim(priv, txq_id, index); |
1195 | if (tid != MAX_TID_COUNT) | 1195 | if (tid != MAX_TID_COUNT) |
1196 | priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; | 1196 | priv->stations[sta_id].tid[tid].tfds_in_queue -= freed; |
1197 | if (iwl_queue_space(&txq->q) > txq->q.low_mark && | 1197 | if (iwl_queue_space(&txq->q) > txq->q.low_mark && |