Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1256976
| From | Axel Haslam <ahaslam@baylibre.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v10 1/6] PM / Domains: prepare for multiple states |
| Date | 2015-10-27 18:10 +0100 |
| Message-ID | <qofV1-7TL-59@gated-at.bofh.it> (permalink) |
| References | <qlF9f-4YG-3@gated-at.bofh.it> <qlF9h-4YG-33@gated-at.bofh.it> <qodzQ-6jT-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Ulf,
>
> Hi Axel,
>
> Apologize for the delay in providing feedback.
>
Thanks for the review!
>> ---
>> arch/arm/mach-exynos/pm_domains.c | 2 +-
>> arch/arm/mach-imx/gpc.c | 2 +-
>> arch/arm/mach-s3c64xx/pm.c | 4 ++--
>> arch/arm/mach-shmobile/pm-rmobile.c | 2 +-
>> arch/arm/mach-ux500/pm_domains.c | 2 +-
>> arch/arm/mach-zx/zx296702-pm-domain.c | 2 +-
>
> You don't need to make above changes.
>
> Instead of inventing pm_genpd_init_simple(), I would rather see that
> you add a new __pm_genpd_init() API. Let's make it take *only* a
> "struct generic_pm_domain *genpd" parameter.
> Moreover, to prevent code duplication, adopt the code in
> pm_genpd_init() so it can invoke __pm_genpd_init().
>
> Then, piece by piece we can convert users from the legacy
> pm_genpd_init() to the __pm_genpd_init().
Ok, ill do that insted.
>>
>> +struct gpd_cpuidle_data {
>> + unsigned int saved_exit_latency;
>> + struct cpuidle_state *idle_state;
>> +};
>
> This is probably some leftover from an old version, right?
yes! this slipped by when i re-based to next, i should have
paid more attention. ill remove it.
>
>> +
>> +struct genpd_power_state {
>> + char *name;
>
> I am wondering a bit about the char *name. Do we really need it and if
> so, what's do you intend to use it for?
>
>
The *name is allocated and used only when CONFIG_PM_ADVANCED_DEBUG
is enabled, its used to print the status on debugfs, when genpd_summary is read.
for example:
#cat /d/pm_genpd/summary
domain status slaves
/device runtime status
----------------------------------------------------------------------
b3 OFF
b2 OFF
b1 OFF b2, b3
a3 OFF
/devices/platform/D2 suspended
a4 RET
/devices/platform/D1 suspended
a2 RET a4
a1 RET a2, a3
cpg_clocks on
Regards
Axel.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v10 0/6] Multiple intermediate states for genpd ahaslam@baylibre.com - 2015-10-20 15:30 +0200
[PATCH v10 1/6] PM / Domains: prepare for multiple states ahaslam@baylibre.com - 2015-10-20 15:30 +0200
Re: [PATCH v10 1/6] PM / Domains: prepare for multiple states Ulf Hansson <ulf.hansson@linaro.org> - 2015-10-27 15:40 +0100
Re: [PATCH v10 1/6] PM / Domains: prepare for multiple states Axel Haslam <ahaslam@baylibre.com> - 2015-10-27 18:10 +0100
[PATCH v10 4/6] ARM: imx6: pm: declare pm domain latency on power_state struct. ahaslam@baylibre.com - 2015-10-20 15:30 +0200
[PATCH v10 3/6] PM / Domains: make governor select deepest state ahaslam@baylibre.com - 2015-10-20 15:30 +0200
csiph-web