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

[Backport v3.7.99-ncs1-branch] pm: bring policy latency API updates #2226

Merged
merged 8 commits into from
Nov 5, 2024

Conversation

NordicBuilder
Copy link
Contributor

Backport 6d97e32~8..6d97e32 from #2150.

nashif and others added 8 commits November 5, 2024 12:00
Replace SYS_INIT with SoC hooks and adapt SoC init code

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

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

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

Signed-off-by: Declan Snyder <[email protected]>
(cherry picked from commit 2db9ea9)
(cherry picked from commit 9a68f13)
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)
(cherry picked from commit 7b42e04)
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)
(cherry picked from commit 8fc34fc)
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)
(cherry picked from commit d7e9470)
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)
(cherry picked from commit 6d97e32)
@rlubos rlubos merged commit b7f454b into v3.7.99-ncs1-branch Nov 5, 2024
22 checks passed
@rlubos rlubos deleted the backport-2150-to-v3.7.99-ncs1-branch branch November 6, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants