Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314919
b: refs/heads/master
c: 26b6da6
h: refs/heads/master
i:
  314917: d9660d4
  314915: e8aed07
  314911: 00893ec
v: v3
  • Loading branch information
Paul Bolle authored and John W. Linville committed Jun 28, 2012
1 parent f516515 commit ab15202
Show file tree
Hide file tree
Showing 2 changed files with 5 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: bf52592fe4901f486a5266fd73e4ee80205b18b4
refs/heads/master: 26b6da6b7829dc7cf5d21e854564be90c7928323
7 changes: 4 additions & 3 deletions trunk/drivers/net/wireless/iwlegacy/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -4717,20 +4717,21 @@ il_check_stuck_queue(struct il_priv *il, int cnt)
struct il_tx_queue *txq = &il->txq[cnt];
struct il_queue *q = &txq->q;
unsigned long timeout;
unsigned long now = jiffies;
int ret;

if (q->read_ptr == q->write_ptr) {
txq->time_stamp = jiffies;
txq->time_stamp = now;
return 0;
}

timeout =
txq->time_stamp +
msecs_to_jiffies(il->cfg->wd_timeout);

if (time_after(jiffies, timeout)) {
if (time_after(now, timeout)) {
IL_ERR("Queue %d stuck for %u ms.\n", q->id,
il->cfg->wd_timeout);
jiffies_to_msecs(now - txq->time_stamp));
ret = il_force_reset(il, false);
return (ret == -EAGAIN) ? 0 : 1;
}
Expand Down

0 comments on commit ab15202

Please sign in to comment.