Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214887
b: refs/heads/master
c: 28df897
h: refs/heads/master
i:
  214885: 1cc4b68
  214883: d9962d4
  214879: 49d22c5
v: v3
  • Loading branch information
Bruno Randolf authored and John W. Linville committed Sep 28, 2010
1 parent dcb1dff commit 9c61c9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 11f21df36cbcffbfada9307e809d4372ece27f47
refs/heads/master: 28df897a42aa41d6318be5b9872c4bb5c8d8d7e3
6 changes: 6 additions & 0 deletions trunk/drivers/net/wireless/ath/ath5k/pcu.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,10 @@ u64 ath5k_hw_get_tsf64(struct ath5k_hw *ah)
{
u32 tsf_lower, tsf_upper1, tsf_upper2;
int i;
unsigned long flags;

/* This code is time critical - we don't want to be interrupted here */
local_irq_save(flags);

/*
* While reading TSF upper and then lower part, the clock is still
Expand All @@ -517,6 +521,8 @@ u64 ath5k_hw_get_tsf64(struct ath5k_hw *ah)
tsf_upper1 = tsf_upper2;
}

local_irq_restore(flags);

WARN_ON( i == ATH5K_MAX_TSF_READ );

return (((u64)tsf_upper1 << 32) | tsf_lower);
Expand Down

0 comments on commit 9c61c9e

Please sign in to comment.