Skip to content
Snippets Groups Projects
Commit 07789def authored by Xiongfeng Wang's avatar Xiongfeng Wang Committed by 谢秀奇
Browse files

sdei_watchdog: do not disable sdei_watchdog event when failed to initialise SDEI


euler inclusion
category: feature
Bugzilla: 5515
CVE: N/A

----------------------------------------

When we modify '/proc/sys/kernel/watchdog_thresh', kernel will call
'watchdog_nmi_disable' before change 'watchdog_thresh'. If firmware does
not support SDEI, we will get 'SDEI NMI Watchdog: Disable NMI Watchdog
failed on cpuX'. It is because we failed to disable sdei_watchdog event.
It has no bad effect.

This patch add a flag to record whether we have registered sdei_watchdog
successfully and do not disable sdei_watchdog event if we failed to
register sdei_watchdog event.

Signed-off-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 8607b627
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment