mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
timer stats: Fix del_timer_sync() and try_to_del_timer_sync()
These functions forgot to run timer_stats_timer_clear_start_info(). It's unobvious what effect this has and whether it matters much - we won't be printing it out anyway if the timer's detached. Untested, just an Ingo trollpatch. [ Nevertheless correct - tglx ] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: johnstul@us.ibm.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
80a05b9ffa
commit
829b6c1ef4
1 changed files with 1 additions and 0 deletions
|
@ -880,6 +880,7 @@ int try_to_del_timer_sync(struct timer_list *timer)
|
||||||
if (base->running_timer == timer)
|
if (base->running_timer == timer)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
timer_stats_timer_clear_start_info(timer);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
if (timer_pending(timer)) {
|
if (timer_pending(timer)) {
|
||||||
detach_timer(timer, 1);
|
detach_timer(timer, 1);
|
||||||
|
|
Loading…
Reference in a new issue