mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
watchdog/hardlockup: add hardlock_notifier_list
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com> Change-Id: Id469d3c5a38f0bcb43a13a5c2263b53cf327154b
This commit is contained in:
@@ -55,6 +55,8 @@ unsigned long *watchdog_cpumask_bits = cpumask_bits(&watchdog_cpumask);
|
|||||||
int __read_mostly sysctl_hardlockup_all_cpu_backtrace;
|
int __read_mostly sysctl_hardlockup_all_cpu_backtrace;
|
||||||
# endif /* CONFIG_SMP */
|
# endif /* CONFIG_SMP */
|
||||||
|
|
||||||
|
ATOMIC_NOTIFIER_HEAD(hardlock_notifier_list);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Should we panic when a soft-lockup or hard-lockup occurs:
|
* Should we panic when a soft-lockup or hard-lockup occurs:
|
||||||
*/
|
*/
|
||||||
@@ -415,6 +417,7 @@ static void watchdog_check_hardlockup_other_cpu(void)
|
|||||||
else
|
else
|
||||||
WARN(1, "Watchdog detected hard LOCKUP on cpu %u", next_cpu);
|
WARN(1, "Watchdog detected hard LOCKUP on cpu %u", next_cpu);
|
||||||
|
|
||||||
|
atomic_notifier_call_chain(&hardlock_notifier_list, 0, NULL);
|
||||||
per_cpu(hard_watchdog_warn, next_cpu) = true;
|
per_cpu(hard_watchdog_warn, next_cpu) = true;
|
||||||
} else {
|
} else {
|
||||||
per_cpu(hard_watchdog_warn, next_cpu) = false;
|
per_cpu(hard_watchdog_warn, next_cpu) = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user