[riot-notifications] [RIOT-OS/RIOT] sys/ztimer: convert clock do not require pm (#16573)

Karl Fessel notifications at github.com
Fri Jun 18 18:46:42 CEST 2021

avoid blocking and unblocking of power mode 0 for convert clocks

@vincent-d identified in #15911 that pm should be done in base clock which was implemented in the huge ztimer auto init overhaul, but it was lacking the not blocking and not unblocking of #15911 for convert clocks which by default are set to 0 (un)blocking that pm

this removes that flaw

in contrast to my comment in #15911 `ztimer/convert_muldiv64.c` and `ztimer/convert_shift.c` do not need modification since they call the init of `ztimer/convert.c` 

### Contribution description

this add setting convert clocks to require no pm (the base clock should have the pm blocking setup correctly)

### Testing procedure

have hardware that operates with pm_mode 0 active, check the power consumption while you expect it sleeping, check if it wakes up when required. 

i don't have such a setup (stm lose most of their mem with pm 0) but would @vincent-d and maybe @jue89 to have.

### Issues/PRs references

fixes what is left of #15911

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * sys/ztimer: convert clock do not require pm

-- File Changes --

    M sys/ztimer/convert.c (3)
    M sys/ztimer/convert_frac.c (4)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210618/94d3ff01/attachment.htm>

More information about the notifications mailing list