Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277118
b: refs/heads/master
c: fb16b8c
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Boyd authored and Thomas Gleixner committed Nov 23, 2011
1 parent b5c1640 commit 3536638
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: b84d435cc228e87951f3bbabf6cc4a5f25d5fb16
refs/heads/master: fb16b8cf0b66386134b09e7b8b7056450272d159
9 changes: 8 additions & 1 deletion trunk/kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,12 @@ static int timer_fixup_init(void *addr, enum debug_obj_state state)
}
}

/* Stub timer callback for improperly used timers. */
static void stub_timer(unsigned long data)
{
WARN_ON(1);
}

/*
* fixup_activate is called when:
* - an active object is activated
Expand All @@ -450,7 +456,8 @@ static int timer_fixup_activate(void *addr, enum debug_obj_state state)
debug_object_activate(timer, &timer_debug_descr);
return 0;
} else {
WARN_ON_ONCE(1);
setup_timer(timer, stub_timer, 0);
return 1;
}
return 0;

Expand Down

0 comments on commit 3536638

Please sign in to comment.