diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-04-27 16:55:57 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-05-01 19:15:41 +0200 |
commit | c84cb3735fd53c91101ccdb191f2e3331a9262cb (patch) | |
tree | c10de08808e9273469f844622ebc276fbcc6624b /samples/ftrace | |
parent | fdc63ff0e49c588884992b4b2656345a5e878b32 (diff) |
x86/apic: Move TSC deadline timer debug printk
Leon reported that the printk_once() in __setup_APIC_LVTT() triggers a
lockdep splat due to a lock order violation between hrtimer_base::lock and
console_sem, when the 'once' condition is reset via
/sys/kernel/debug/clear_warn_once after boot.
The initial printk cannot trigger this because that happens during boot
when the local APIC timer is set up on the boot CPU.
Prevent it by moving the printk to a place which is guaranteed to be only
called once during boot.
Mark the deadline timer check related functions and data __init while at
it.
Reported-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/87y2qhoshi.fsf@nanos.tec.linutronix.de
Diffstat (limited to 'samples/ftrace')
0 files changed, 0 insertions, 0 deletions