Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29077
b: refs/heads/master
c: 3439dd8
h: refs/heads/master
i:
  29075: 4b34a74
v: v3
  • Loading branch information
Porpoise authored and Linus Torvalds committed Jun 23, 2006
1 parent 4e80b48 commit 2395c81
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 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: 626ab0e69d376fa07599af669af8ba92d58e87c1
refs/heads/master: 3439dd86e34580384d3b58cf8d54a9283cd7a342
22 changes: 9 additions & 13 deletions trunk/kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,23 +383,19 @@ EXPORT_SYMBOL(del_timer_sync);
static int cascade(tvec_base_t *base, tvec_t *tv, int index)
{
/* cascade all the timers from tv up one level */
struct list_head *head, *curr;
struct timer_list *timer, *tmp;
struct list_head tv_list;

list_replace_init(tv->vec + index, &tv_list);

head = tv->vec + index;
curr = head->next;
/*
* We are removing _all_ timers from the list, so we don't have to
* detach them individually, just clear the list afterwards.
* We are removing _all_ timers from the list, so we
* don't have to detach them individually.
*/
while (curr != head) {
struct timer_list *tmp;

tmp = list_entry(curr, struct timer_list, entry);
BUG_ON(tmp->base != base);
curr = curr->next;
internal_add_timer(base, tmp);
list_for_each_entry_safe(timer, tmp, &tv_list, entry) {
BUG_ON(timer->base != base);
internal_add_timer(base, timer);
}
INIT_LIST_HEAD(head);

return index;
}
Expand Down

0 comments on commit 2395c81

Please sign in to comment.