| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Tickless threshold selection may downgrade sleep_mode after peripherals have been suspended. Preserve that suspend mode for device resume and paired notifications, while retaining the selected mode for CPU sleep and tickless timer handling. Fixes RT-Thread#11046
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 fix/pm-resume-suspend-mode 分支,关联的 Pull Request 也会同步更新。 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
Sorry, something went wrong.
📌 Code Review Assignment🏷️ Tag: componentsReviewers: @Maihuanyi Changed Files (Click to expand)
🏷️ Tag: components_driver_pmReviewers: @wdfk-prog Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-09-22 18:48 CST)
📝 Review Instructions
|
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
拉取/合并请求描述:(PR description)
Devices can be suspended for Deep sleep before tickless selection changes the CPU sleep mode to Idle or Light. Resuming with the new mode can leave those devices disabled.
Save the mode passed to suspend and reuse it for resume and paired notifications, including suspend-failure cleanup. CPU sleep and timer handling continue to use the selected sleep mode.
Fixes #11046.
Validation
GCC 16.1 host tests compile the complete pm.c with threshold selection and suspend-failure handling enabled and disabled. All four configurations pass mode-pairing, failure cleanup, timer and critical-section checks; the original code fails the mode-pairing cases.
Changed-line clang-format and git diff --check pass. No target BSP, QEMU, SMP scheduler or hardware power/wakeup test was run.
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following: