diff --git a/kernel/watchdog_hld.c b/kernel/watchdog_hld.c index 8af4ab738ce944ebdbf0d8751173d5e079891ef8..060873ff8a6d57cee05db670c29602feb6c9e76c 100644 --- a/kernel/watchdog_hld.c +++ b/kernel/watchdog_hld.c @@ -148,6 +148,10 @@ void watchdog_check_hrtimer(void) if (cpu == smp_processor_id()) return; + /* return if hard lockup detector is disable */ + if (!(watchdog_enabled & NMI_WATCHDOG_ENABLED)) + return; + /* * The freq of hrtimer is fast than nmi interrupts and * the core mustn't hangs if hrtimer still working.