Skip to content

Commit 2542fa9

Browse files
Bowen Youopsiff
authored andcommitted
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. Fixes: c8f96adca7fa ("arm64/watchdog: fix watchdog failure in low power scenarios") Signed-off-by: Bowen You <youbowen2@huawei.com> (cherry picked from commit f2f9b6cb6466eb51c2d654981c767bc5d719b001) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 3c38c17 commit 2542fa9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/arm64/kernel/watchdog_sdei.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ static int sdei_watchdog_pm_notifier(struct notifier_block *nb,
123123
rv = sdei_api_event_disable(sdei_watchdog_event_num);
124124
break;
125125
case CPU_PM_EXIT:
126+
case CPU_PM_ENTER_FAILED:
126127
if (per_cpu(sdei_usr_en, smp_processor_id()))
127128
rv = sdei_api_event_enable(sdei_watchdog_event_num);
128129
break;

0 commit comments

Comments
 (0)