]> git.baikalelectronics.ru Git - kernel.git/commit
timer: Move trace point to get proper index
authorAnna-Maria Gleixner <anna-maria@linutronix.de>
Thu, 21 Mar 2019 12:09:19 +0000 (13:09 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 24 Mar 2019 19:29:32 +0000 (20:29 +0100)
commit49f1b6ea0c7010246a9cdff2375e2c3c0732c0dc
tree6b775233eac55849eba1d9815bc35a7a4003c8ff
parent36ce19d294ea1108d3dbe887e073ec606a24e486
timer: Move trace point to get proper index

When placing the timer_start trace point before the timer wheel bucket
index is calculated, the index information in the trace point is useless.

It is not possible to simply move the debug_activate() call after the index
calculation, because debug_object_activate() needs to be called before
touching the object.

Therefore split debug_activate() and move the trace point into
enqueue_timer() after the new index has been calculated. The
debug_object_activate() call remains at the original place.

Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: fweisbec@gmail.com
Cc: peterz@infradead.org
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: https://lkml.kernel.org/r/20190321120921.16463-3-anna-maria@linutronix.de
kernel/time/timer.c