Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133951
b: refs/heads/master
c: e82181d
h: refs/heads/master
i:
  133949: 6ee9c22
  133947: 7c5eb80
  133943: d48b267
  133935: 5d7c507
  133919: 861298c
  133887: 9eaaad5
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Feb 1, 2009
1 parent 67cda01 commit 8c62f81
Show file tree
Hide file tree
Showing 2 changed files with 8 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: b00355db3f88d96810a60011a30cfb2c3469409d
refs/heads/master: e82181de5ef4648074765912d2d82d6bd60115eb
7 changes: 7 additions & 0 deletions trunk/net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ struct htb_sched {
int direct_qlen; /* max qlen of above */

long direct_pkts;

#define HTB_WARN_TOOMANYEVENTS 0x1
unsigned int warned; /* only one warning */
};

/* find class in global hash table using given handle */
Expand Down Expand Up @@ -685,6 +688,10 @@ static psched_time_t htb_do_events(struct htb_sched *q, int level,
htb_add_to_wait_tree(q, cl, diff);
}
/* too much load - let's continue on next jiffie (including above) */
if (!(q->warned & HTB_WARN_TOOMANYEVENTS)) {
printk(KERN_WARNING "htb: too many events!\n");
q->warned |= HTB_WARN_TOOMANYEVENTS;
}
return q->now + 2 * PSCHED_TICKS_PER_SEC / HZ;
}

Expand Down

0 comments on commit 8c62f81

Please sign in to comment.