]> git.baikalelectronics.ru Git - kernel.git/commit
lockdep: Add posixtimer context tracing bits
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Sat, 21 Mar 2020 11:26:04 +0000 (12:26 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Sat, 21 Mar 2020 15:00:25 +0000 (16:00 +0100)
commitd2f036bcea75e2de74feda30cd400eefe2febb14
treebd600c130fb6c4a189c81c2dbfb7bb70724f6296
parentc6e0bff7bb0b4f23e6ccd6a7bd7ecd2c7d44f7a0
lockdep: Add posixtimer context tracing bits

Splitting run_posix_cpu_timers() into two parts is work in progress which
is stuck on other entry code related problems. The heavy lifting which
involves locking of sighand lock will be moved into task context so the
necessary execution time is burdened on the task and not on interrupt
context.

Until this work completes lockdep with the spinlock nesting rules enabled
would emit warnings for this known context.

Prevent it by setting "->irq_config = 1" for the invocation of
run_posix_cpu_timers() so lockdep does not complain when sighand lock is
acquried. This will be removed once the split is completed.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200321113242.751182723@linutronix.de
include/linux/irqflags.h
kernel/time/posix-cpu-timers.c