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

sys/pm: Fix behavior of fallback pm_off() implementation #13978

Merged
merged 1 commit into from
May 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions sys/pm_layered/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ void pm_unblock(unsigned mode)
#ifndef PROVIDES_PM_LAYERED_OFF
void pm_off(void)
{
pm_blocker.val_u32 = 0;
pm_set_lowest();
while(1) {}
irq_disable();
while(1) {
pm_set(0);
}
}
#endif