tracing: Allow RCU to run between postponed startup tests
authorAnders Roxell <anders.roxell@linaro.org>
Fri, 30 Nov 2018 14:56:22 +0000 (15:56 +0100)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 8 May 2019 16:15:12 +0000 (12:15 -0400)
commit6fc2171c5c03672bae71d04a0f5fa88cc9c3b4e2
tree087d547fc1c6e2defff7ce4b8a3248c22520fb67
parentbfcd631eb6de474d8e097fd0f9f840fdf7272a1d
tracing: Allow RCU to run between postponed startup tests

When building a allmodconfig kernel for arm64 and boot that in qemu,
CONFIG_FTRACE_STARTUP_TEST gets enabled and that takes time so the
watchdog expires and prints out a message like this:
'watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper/0:1]'
Depending on what the what test gets called from init_trace_selftests()
it stays minutes in the loop.
Rework so that function cond_resched() gets called in the
init_trace_selftests loop.

Link: http://lkml.kernel.org/r/20181130145622.26334-1-anders.roxell@linaro.org
Co-developed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c