Skip to content
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

power: Documentation updates and general fixes #33222

Merged
merged 9 commits into from
Mar 22, 2021

Conversation

ceolin
Copy link
Member

@ceolin ceolin commented Mar 10, 2021

  • Restore IRQ when post ops is not implemented by the target
  • Move PM hooks to their documentation section
  • Add notes about notifier constraints
  • Removed reference for undefined variable
  • Send exit notification after exit_post_ops callback

include/power/power.h Outdated Show resolved Hide resolved
include/power/power.h Outdated Show resolved Hide resolved
subsys/power/power.c Show resolved Hide resolved
doc/reference/power_management/index.rst Show resolved Hide resolved
doc/reference/power_management/index.rst Show resolved Hide resolved
Flavio Ceolin added 9 commits March 19, 2021 13:50
Add a new note clarifying one constraint in this API.

Signed-off-by: Flavio Ceolin <[email protected]>
pm_idle_exit_notify is no longer defined or used. Just removing it.

Signed-off-by: Flavio Ceolin <[email protected]>
Put documentation about pm_power_state_set in the proper group,
power_management_hook_interface.

Signed-off-by: Flavio Ceolin <[email protected]>
The kernel expects irqs be unlocked after this function be called.
Add it to the weak function in case of the SoC or application has not
implemented it.

Signed-off-by: Flavio Ceolin <[email protected]>
Just call the function instead of replicate the logic.

Signed-off-by: Flavio Ceolin <[email protected]>
Currently notification about exiting an idle state is sent before
post_ops and with interruptions locked. Change it to be sent after
exit_pos_ops callback be called.

Unfortunately it is not possible to just change the order these
functions are called since the idle thread can be scheduled out just
after irqs be unlocked and before has the chance to send the
notification, so we are locking the scheduler and unlocking it only
after the notification be sent.

Signed-off-by: Flavio Ceolin <[email protected]>
Create a separate sub group for constraint APIs. This way it is
possible to reference this api directly in the power management
reference without mess with the rest of the documentation.

Signed-off-by: Flavio Ceolin <[email protected]>
Add information about power state constraints and more information
about power management policy.

Signed-off-by: Flavio Ceolin <[email protected]>
Change references to an old function name.

Signed-off-by: Flavio Ceolin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants