[PATCH OLK-6.6] sdei_watchdog: Add CPU_PM_ENTER_FAILED handling in sdei_watchdog_pm_notifier

hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8LQCC CVE: NA ------------------------------------------------- The `CPU_PM_ENTER_FAILED` case was added to align with the handling in `sdei_pm_notifier`. This ensures proper masking/unmasking of events for the CPU when entering idle fails, maintaining consistency across CPU power management actions. Signed-off-by: Bowen You <youbowen2@huawei.com> --- arch/arm64/kernel/watchdog_sdei.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/watchdog_sdei.c b/arch/arm64/kernel/watchdog_sdei.c index d8019becf10d..9d63bb063718 100644 --- a/arch/arm64/kernel/watchdog_sdei.c +++ b/arch/arm64/kernel/watchdog_sdei.c @@ -123,6 +123,7 @@ static int sdei_watchdog_pm_notifier(struct notifier_block *nb, rv = sdei_api_event_disable(sdei_watchdog_event_num); break; case CPU_PM_EXIT: + case CPU_PM_ENTER_FAILED: if (per_cpu(sdei_usr_en, smp_processor_id())) rv = sdei_api_event_enable(sdei_watchdog_event_num); break; -- 2.34.1

反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/18412 邮件列表地址:https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/3OW... FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/18412 Mailing list address: https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/3OW...
participants (2)
-
Bowen You
-
patchwork bot