Commit-ID: 03e372e14c5b024643192669e1b567dc02fc892e Gitweb: http://git.kernel.org/tip/03e372e14c5b024643192669e1b567dc02fc892e Author: Anna-Maria Gleixner <anna-maria@xxxxxxxxxxxxx> AuthorDate: Mon, 27 Feb 2017 15:18:27 +0100 Committer: Thomas Gleixner <tglx@xxxxxxxxxxxxx> CommitDate: Tue, 18 Apr 2017 11:46:36 +0200 timer: Invoke timer_start_debug() where it makes sense The timer start debug function is called before the proper timer base is set. As a consequence the trace data contains the stale CPU and flags values. Call the debug function after setting the new base and flags. Signed-off-by: Anna-Maria Gleixner <anna-maria@xxxxxxxxxxxxx> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx> --- kernel/time/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/time/timer.c b/kernel/time/timer.c index 1dc0256..89d3daa 100644 --- a/kernel/time/timer.c +++ b/kernel/time/timer.c @@ -970,8 +970,6 @@ __mod_timer(struct timer_list *timer, unsigned long expires, bool pending_only) if (!ret && pending_only) goto out_unlock; - debug_activate(timer, expires); - new_base = get_target_base(base, timer->flags); if (base != new_base) { @@ -994,6 +992,8 @@ __mod_timer(struct timer_list *timer, unsigned long expires, bool pending_only) } } + debug_activate(timer, expires); + /* Try to forward a stale timer base clock */ forward_timer_base(base); -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html