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

pm: bring policy latency API updates #2150

Merged
merged 8 commits into from
Nov 5, 2024

Conversation

gmarull
Copy link
Member

@gmarull gmarull commented Oct 23, 2024

Other patches are unrelated, but needed so that everything applies cleanly.

Copy link
Contributor

@de-nordic de-nordic left a comment

Choose a reason for hiding this comment

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

Flash related things look OK.

nashif and others added 8 commits November 4, 2024 17:37
Replace SYS_INIT with SoC hooks and adapt SoC init code

Signed-off-by: Anas Nashif <[email protected]>
(cherry picked from commit 49f7204)
Can disable RDC configuration if RDC node is disabled.

Signed-off-by: Jiafei Pan <[email protected]>
(cherry picked from commit bd03883)
Replace SYS_INIT with SoC hooks and adapt SoC init code

Signed-off-by: Anas Nashif <[email protected]>
(cherry picked from commit f519f00)
Add support for SCG K4 clock control in kinetis pinctrl.

Signed-off-by: Declan Snyder <[email protected]>
(cherry picked from commit 2db9ea9)
We already have `DT_HAS_COMPAT_STATUS_OKAY` and
`DT_NUM_INST_STATUS_OKAY`, it seems intuitive to assume that
`DT_NODE_HAS_STATUS_OKAY` exists, so much so that it was used
before it's implemented.

This patch implements `DT_NODE_HAS_STATUS_OKAY`, which is
equivalent to: `DT_NODE_HAS_STATUS(<node_id>, okay)`

Added test for it in `tests/lib/devicetree/api`

Signed-off-by: Yong Cong Sin <[email protected]>
Signed-off-by: Yong Cong Sin <[email protected]>
(cherry picked from commit 5aebd12)
Change instances of:

DT_NODE_HAS_STATUS(<node_id>, okay)

to

DT_NODE_HAS_STATUS_OKAY(<node_id>)

Signed-off-by: Yong Cong Sin <[email protected]>
Signed-off-by: Yong Cong Sin <[email protected]>
(cherry picked from commit 52a2023)
policy.c has grown organically, it contained many independent pieces of
code. This patch splits each logical unit into its own C file, making it
easier to browse the code.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 6f4bb11)
This option allows using the pm_policy_latency* APIs to gather latency
requirements on systems that do not support PM (e.g. systems whithout
CPU idle states). Because the API has a subscription mechanism, it can
be useful to perform system-level adjustments based on latency
requirements gathered from multiple system components.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit 578008c)
@gmarull gmarull merged commit 6d97e32 into nrfconnect:main Nov 5, 2024
16 checks passed
@gmarull gmarull deleted the pm-latency-api-updates branch November 5, 2024 09:21
@rlubos rlubos added the backport v3.7.99-ncs1-branch Relates to NCS v2.8-branch label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport v3.7.99-ncs1-branch Relates to NCS v2.8-branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants