Skip to content

Commit 9c556e5

Browse files
Daniel Bristot de Oliveirarostedt
authored andcommitted
tracing/timerlat: Do not wakeup the thread if the trace stops at the IRQ
There is no need to wakeup the timerlat/ thread if stop tracing is hit at the timerlat's IRQ handler. Return before waking up timerlat's thread. Link: https://lkml.kernel.org/r/b392356c91b56aedd2b289513cc56a84cf87e60d.1652175637.git.bristot@kernel.org Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Clark Williams <williams@redhat.com> Cc: Ingo Molnar <mingo@redhat.com> Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 4dd2aea commit 9c556e5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kernel/trace/trace_osnoise.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,8 @@ static enum hrtimer_restart timerlat_irq(struct hrtimer *timer)
15951595

15961596
osnoise_stop_tracing();
15971597
notify_new_max_latency(diff);
1598+
1599+
return HRTIMER_NORESTART;
15981600
}
15991601
}
16001602

0 commit comments

Comments
 (0)