Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 829b6c1e authored by Andrew Morton's avatar Andrew Morton Committed by Thomas Gleixner
Browse files

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: johnstul@us.ibm.com
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 80a05b9f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -880,6 +880,7 @@ int try_to_del_timer_sync(struct timer_list *timer)
	if (base->running_timer == timer)
		goto out;

	timer_stats_timer_clear_start_info(timer);
	ret = 0;
	if (timer_pending(timer)) {
		detach_timer(timer, 1);