From: Daniel Bristot de Oliveira Date: Tue, 10 May 2022 09:45:25 +0000 (+0200) Subject: tracing/timerlat: Do not wakeup the thread if the trace stops at the IRQ X-Git-Tag: v5.19-rc1~102^2~12 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9c556e5a4dd5cfc0939a0575577d0517118f98af;p=tomoyo%2Ftomoyo-test1.git 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 Cc: Clark Williams Cc: Ingo Molnar Signed-off-by: Daniel Bristot de Oliveira Signed-off-by: Steven Rostedt (Google) --- diff --git a/kernel/trace/trace_osnoise.c b/kernel/trace/trace_osnoise.c index 9b204ee3c6f5..035ec8b84e12 100644 --- a/kernel/trace/trace_osnoise.c +++ b/kernel/trace/trace_osnoise.c @@ -1595,6 +1595,8 @@ static enum hrtimer_restart timerlat_irq(struct hrtimer *timer) osnoise_stop_tracing(); notify_new_max_latency(diff); + + return HRTIMER_NORESTART; } }