Thread (38 messages) 38 messages, 2 authors, 2019-12-20

Re: [PATCH v4 08/14] cpuidle: psci: Add a helper to attach a CPU to its PM domain

From: Sudeep Holla <hidden>
Date: 2019-12-19 14:30:41
Also in: linux-arm-msm, linux-pm

On Wed, Dec 11, 2019 at 04:43:37PM +0100, Ulf Hansson wrote:
Introduce a PSCI DT helper function, psci_dt_attach_cpu(), which takes a
CPU number as an in-parameter and tries to attach the CPU's struct device
to its corresponding PM domain.

Let's makes use of dev_pm_domain_attach_by_name(), as it allows us to
specify "psci" as the "name" of the PM domain to attach to. Additionally,
let's also prepare the attached device to be power managed via runtime PM.

Note that, the implementation of the new helper function is in a new
separate c-file, which may seems a bit too much at this point. However,
subsequent changes that implements the remaining part of the PM domain
support for cpuidle-psci, helps to justify this split.
Reviewed-by: Sudeep Holla <redacted>

--
Regards,
Sudeep

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help