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

zephyr: pm_runtime: Remove outdated TODO comment #8893

Conversation

tmleman
Copy link
Contributor

@tmleman tmleman commented Mar 1, 2024

Clean up an incorrect TODO comment in the power management runtime policy.

The removed comment suggested the need for substates to handle cases where power gating (PG) is enabled and clock gating (CG) is disabled. However, this is not accurate because:

  • Enabling PG when CG is not allowed is not feasible; entering PG could inadvertently gate the clock even if CG prevent is active.
  • Substates are no longer required as clock gating is now always enabled.

This change clarifies the power management behavior and removes confusion around the handling of power and clock gating.

Clean up an incorrect TODO comment in the power management runtime
policy.

The removed comment suggested the need for substates to handle cases where
power gating (PG) is enabled and clock gating (CG) is disabled. However,
this is not accurate because:
- Enabling PG when CG is not allowed is not feasible; entering PG could
  inadvertently gate the clock even if CG prevent is active.
- Substates are no longer required as clock gating is now always enabled.

This change clarifies the power management behavior and removes confusion
around the handling of power and clock gating.

Signed-off-by: Tomasz Leman <[email protected]>
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kv2019i kv2019i merged commit fe69031 into thesofproject:main Mar 4, 2024
40 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants