aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
authorGregory Greenman <gregory.greenman@intel.com>2008-08-04 04:00:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-04 15:09:12 -0400
commitda99c4b6c25964b90c79f19beccda208df1a865a (patch)
treeb16752072e71c6491e18c3ef50e064d858a66452 /drivers/net/wireless/iwlwifi/iwl-dev.h
parent4c43e0d0ecd5196ed5c67f64ed2f1860770eed34 (diff)
iwlwifi: memory allocation optimization
This patch optimizes memory allocation. The cmd member of iwl_tx_queue was allocated previously as a continuous block of memory. This patch allocates separate memory chunks for each command and maps/unmaps these chunks in the run time. Signed-off-by: Gregory Greenman <gregory.greenman@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 848786ab7916..c19db438306c 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -135,8 +135,7 @@ struct iwl_tx_info {
135struct iwl_tx_queue { 135struct iwl_tx_queue {
136 struct iwl_queue q; 136 struct iwl_queue q;
137 struct iwl_tfd_frame *bd; 137 struct iwl_tfd_frame *bd;
138 struct iwl_cmd *cmd; 138 struct iwl_cmd *cmd[TFD_TX_CMD_SLOTS];
139 dma_addr_t dma_addr_cmd;
140 struct iwl_tx_info *txb; 139 struct iwl_tx_info *txb;
141 int need_update; 140 int need_update;
142 int sched_retry; 141 int sched_retry;