Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266019
b: refs/heads/master
c: 6bc05a9
h: refs/heads/master
i:
  266017: 6edb5af
  266015: 03d3b2a
v: v3
  • Loading branch information
Rajkumar Manoharan authored and John W. Linville committed Sep 14, 2011
1 parent 50aee4a commit 341de34
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: f7e014dac29b1abe5c8fa8d721d43928633340ab
refs/heads/master: 6bc05a9555543d0f8cc56bf2647819aebe39e938
9 changes: 6 additions & 3 deletions trunk/drivers/net/wireless/ath/ath9k/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -1323,16 +1323,17 @@ void ath9k_debug_samp_bb_mac(struct ath_softc *sc)

ath9k_ps_wakeup(sc);

spin_lock_bh(&sc->debug.samp_lock);

spin_lock_irqsave(&common->cc_lock, flags);
ath_hw_cycle_counters_update(common);
spin_unlock_irqrestore(&common->cc_lock, flags);

spin_lock_bh(&sc->debug.samp_lock);

ATH_SAMP_DBG(cc.cycles) = common->cc_ani.cycles;
ATH_SAMP_DBG(cc.rx_busy) = common->cc_ani.rx_busy;
ATH_SAMP_DBG(cc.rx_frame) = common->cc_ani.rx_frame;
ATH_SAMP_DBG(cc.tx_frame) = common->cc_ani.tx_frame;
spin_unlock_irqrestore(&common->cc_lock, flags);

ATH_SAMP_DBG(noise) = ah->noise;

REG_WRITE_D(ah, AR_MACMISC,
Expand Down Expand Up @@ -1390,6 +1391,8 @@ static int open_file_bb_mac_samps(struct inode *inode, struct file *file)
spin_lock_bh(&sc->debug.samp_lock);
memcpy(bb_mac_samp, sc->debug.bb_mac_samp,
sizeof(*bb_mac_samp) * ATH_DBG_MAX_SAMPLES);
len += snprintf(buf + len, size - len,
"Current Sample Index: %d\n", sc->debug.sampidx);
spin_unlock_bh(&sc->debug.samp_lock);

len += snprintf(buf + len, size - len,
Expand Down

0 comments on commit 341de34

Please sign in to comment.