-
Notifications
You must be signed in to change notification settings - Fork 736
[nrf fromtree] Add PM lock for fast locking all power modes #3542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am surprised this notifier didn't already report the substate id, it seems important since different substate obviously are defined for a reason, they can be having a different effect on the system. Signed-off-by: Declan Snyder <[email protected]> (cherry picked from commit ae1f131)
Add two helper functions to convert power management states between enum and string: - pm_state_to_string() - pm_state_from_string() Signed-off-by: Yongxu Wang <[email protected]> (cherry picked from commit 8767cec)
Some pieces of the system may have custom types of constraints that they define based on different effects and reasons than just the standard "zephyr,disabling-states". To avoid every single one of these component reinventing the wheel, make some common APIs to handle these type of custom constraint lists. Signed-off-by: Declan Snyder <[email protected]> (cherry picked from commit a4225b1)
Add function for getting and putting a lock for all power states. It is much faster version of requesting 0 us latency with actual intention to disable all power states. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit 336e89e)
Add test case that validates behavior of pm_policy_state_all_lock_get and pm_policy_state_all_lock_put. Signed-off-by: Krzysztof Chruściński <[email protected]> (cherry picked from commit 3595c9d)
NordicBuilder
added a commit
to NordicBuilder/sdk-nrf
that referenced
this pull request
Nov 26, 2025
Automatically created by action-manifest-pr GH action from PR: nrfconnect/sdk-zephyr#3542 Signed-off-by: Nordic Builder <[email protected]>
nika-nordic
approved these changes
Nov 27, 2025
kl-cruz
approved these changes
Nov 27, 2025
mstasiaknordic
approved these changes
Nov 27, 2025
adamkondraciuk
approved these changes
Nov 28, 2025
NordicBuilder
added a commit
to NordicBuilder/sdk-nrf
that referenced
this pull request
Dec 1, 2025
Automatically created by action-manifest-pr GH action from PR: nrfconnect/sdk-zephyr#3542 Signed-off-by: Nordic Builder <[email protected]>
rlubos
pushed a commit
to nrfconnect/sdk-nrf
that referenced
this pull request
Dec 1, 2025
Automatically created by action-manifest-pr GH action from PR: nrfconnect/sdk-zephyr#3542 Signed-off-by: Nordic Builder <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
pm_policy_state_all_lock_getandpm_policy_state_all_lock_putfor fast locking and unlocking of all PM states.Additional cherry-picks needed to get the clean merge.