sbsa_gwdt: Introduce a panic notifier
hulk inclusion category: feature bugzilla: NA CVE: NA When the kernel panic we reset the timeout to pretimeout, then after pretimeout seconds the sbsa_gwdt reset the system. The pretimeout to be set is configured via the watchdog-core, but the meaning is different from that of the watchdog-core. The pretimeout here defines the new timeout for the sbsa_gwdt after panic while that of the watchdog-core is meaningful where the WDT would raise an interrupt before timeout and it defines the length of that period. That period of sbsa_gwdt cannot be changed separately so the redefination here doesn't make trouble. The pretimeout here follow the same limit of that of watchdog-core that the pretimeout shall be smaller than timeout, since we prefer that the sbsa_gwdt would reset the system sooner on panic. We add a new kconfig ARM_SBSA_WATCHDOG_PANIC_NOTIFIER to control the feature. Set action to 2 to enable the notifier. Signed-off-by: NWang Wensheng <wangwensheng4@huawei.com> Reviewed-by: NXiongfeng Wang <wangxiongfeng2@huawei.com> Reviewed-by: NDing Tianhong <dingtianhong@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录