Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 246839
b: refs/heads/master
c: 8962d87
h: refs/heads/master
i:
  246837: 67f9450
  246835: 5149c79
  246831: 1c3a3c4
v: v3
  • Loading branch information
John W. Linville committed Apr 13, 2011
1 parent 629a0bd commit 605981f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6f11c819d5fb24b637f2db605e5d3c270c979627
refs/heads/master: 8962d87129ec0a820d17ac44cbf3f51010ad8db8
7 changes: 6 additions & 1 deletion trunk/drivers/net/wireless/ath/ath5k/desc.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ static int ath5k_hw_setup_4word_tx_desc(struct ath5k_hw *ah,
{
struct ath5k_hw_4w_tx_ctl *tx_ctl;
unsigned int frame_len;

/*
* Use local variables for these to reduce load/store access on
* uncached memory
*/
u32 txctl0 = 0, txctl1 = 0, txctl2 = 0, txctl3 = 0;

tx_ctl = &desc->ud.ds_tx5212.tx_ctl;
Expand All @@ -209,7 +214,7 @@ static int ath5k_hw_setup_4word_tx_desc(struct ath5k_hw *ah,
if (tx_power > AR5K_TUNE_MAX_TXPOWER)
tx_power = AR5K_TUNE_MAX_TXPOWER;

/* Clear descriptor */
/* Clear descriptor status area */
memset(&desc->ud.ds_tx5212.tx_stat, 0,
sizeof(desc->ud.ds_tx5212.tx_stat));

Expand Down

0 comments on commit 605981f

Please sign in to comment.