-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
pm: state: Support setting custom data to a state #66295
Conversation
b546ea2
to
834dc65
Compare
Custom data is not used by the subsystem itself, and is freely available for a SoC to use as it sees fit. It can be used to SoCs expose a way to targets customize a state behavior. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
834dc65
to
ae69368
Compare
{ | ||
#ifdef CONFIG_PM_STATE_CUSTOM_DATA | ||
for (int16_t i = 0; i < ARRAY_SIZE(cpus_states); i++) { | ||
pm_state_info *state_info = cpus_states[i]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing struct
keyword
{ | ||
#ifdef CONFIG_PM_STATE_CUSTOM_DATA | ||
for (int16_t i = 0; i < ARRAY_SIZE(cpus_states); i++) { | ||
pm_state_info *state_info = cpus_states[i]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing struct
keyword
|
||
if ((state_info->state == state) && | ||
((state_info->substate_id == substate_id)) || | ||
(substate_id == PM_ALL_SUBSTATES)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing include of <zephyr/pm/policy.h>
for PM_ALL_SUBSTATES
definition
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
Custom data is not used by the subsystem itself, and is freely available for a SoC to use as it sees fit. It can be used to SoCs expose a way to targets customize a state behavior.