Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159391
b: refs/heads/master
c: 87cdb98
h: refs/heads/master
i:
  159389: 86284e1
  159387: b0e20cf
  159383: 40905dc
  159375: 3e4db04
  159359: a80d9ac
v: v3
  • Loading branch information
Julia Lawall authored and John W. Linville committed Aug 4, 2009
1 parent 147c824 commit 800e3ac
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: 2c8d51048f6a54aabe2e15278210cb07288e17bb
refs/heads/master: 87cdb9894b9367237f25e5a4c381eb8e594e782b
9 changes: 6 additions & 3 deletions trunk/drivers/net/wireless/strip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1550,9 +1550,12 @@ static int strip_xmit(struct sk_buff *skb, struct net_device *dev)

if (time_after(jiffies, strip_info->pps_timer + HZ)) {
unsigned long t = jiffies - strip_info->pps_timer;
unsigned long rx_pps_count = (strip_info->rx_pps_count * HZ * 8 + t / 2) / t;
unsigned long tx_pps_count = (strip_info->tx_pps_count * HZ * 8 + t / 2) / t;
unsigned long sx_pps_count = (strip_info->sx_pps_count * HZ * 8 + t / 2) / t;
unsigned long rx_pps_count =
DIV_ROUND_CLOSEST(strip_info->rx_pps_count*HZ*8, t);
unsigned long tx_pps_count =
DIV_ROUND_CLOSEST(strip_info->tx_pps_count*HZ*8, t);
unsigned long sx_pps_count =
DIV_ROUND_CLOSEST(strip_info->sx_pps_count*HZ*8, t);

strip_info->pps_timer = jiffies;
strip_info->rx_pps_count = 0;
Expand Down

0 comments on commit 800e3ac

Please sign in to comment.