Skip to content

Conversation

@bjarki-andreasen
Copy link
Contributor

@bjarki-andreasen bjarki-andreasen commented Oct 29, 2024

The pm_policy_event_register() API takes absolute cycles as the
second arg, like pm_policy_event_update(), but the arg is renamed
time_us and treated as a relative time in us rather than abs
cycles.

Fix implementation of pm_policy_event_register() to treat cycles
like pm_policy_event_update() and API docs suggest.

fixes: #80898

The pm_policy_event_register() API takes absolute cycles as the
second arg, like pm_policy_event_update(), but the arg is renamed
time_us and treated as a relative time in us rather than abs
cycles.

Fix implementation of pm_policy_event_register() to treat cycles
like pm_policy_event_update() and API docs suggest.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
@bjarki-andreasen bjarki-andreasen force-pushed the fix-pm_policy_event_register-impl branch from 1025e8a to 772b450 Compare October 29, 2024 10:02
@bjarki-andreasen bjarki-andreasen added the bug The issue is a bug, or the PR is fixing a bug label Oct 29, 2024
Copy link
Member

@ceolin ceolin left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. That was recently changed and this was missed.

@mmahadevan108
Copy link
Contributor

@bjarki-andreasen Can you please add an issue with details and link that issue to this PR. After RC2 only bug fixes with an associated Github issue will be merged into the upcoming 4.0 release.

@bjarki-andreasen
Copy link
Contributor Author

@mmahadevan108 issue added and referenced :)

@mmahadevan108 mmahadevan108 merged commit 145d041 into zephyrproject-rtos:main Nov 5, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Power Management bug The issue is a bug, or the PR is fixing a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect pm_policy_event_register() argument handling

6 participants