Re: [PATCHv4 11/15] omap3+: voltage/pwrdm/clkdm/clock add recursive usecount tracking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



+Paul

Tero Kristo <t-kristo@xxxxxx> writes:

> This patch fixes the usecount tracking for omap3+, previously the
> usecount numbers were rather bogus and were not really useful for
> any purpose. Now usecount numbers track the number of really active
> clients on each domain. 

Excellent!  

This dramatically improves the usefulness of <debugfs>/pm_debug/count.
Adding the voltage domains to that debugfs would help even more.

Also, the changelog should be a bit more verbose about the new clk->autoidle
field, it's usage, and how it affects usecounting.  

Speaking of debugfs: not a requirement for this series, but another
"nice to have" (which you can do while waiting for the slow maintainers
to review :) would be for this debugfs to show the clkdomains under the
powerdomains they are in, and the powerdomains under the voltage domains
(instead of the current list of pwrdms followed by clkdms.)  Maybe using
voltdm_for_each_pwrdm() + pwrdm_for_each_clkdm() might help there.

> This patch also adds support for usecount tracking on powerdomain and
> voltagedomain levels.

The clock/clkdm/pwrdm changes should probably be split separate patch
for review/merge by Paul.  Then the voltdm changes can included in this
series.  Although, with Paul's ack on the clock/clkdm/powerdomain
changes, I'll be happy to queue this as well.

[...]

> diff --git a/arch/arm/plat-omap/include/plat/clock.h b/arch/arm/plat-omap/include/plat/clock.h
> index df4b968..f18dd5f 100644
> --- a/arch/arm/plat-omap/include/plat/clock.h
> +++ b/arch/arm/plat-omap/include/plat/clock.h
> @@ -254,6 +254,7 @@ struct clk {
>  	void			(*init)(struct clk *);
>  	u8			enable_bit;
>  	s8			usecount;
> +	u8			autoidle;

should be bool, and assignments using true | false.

Kevin
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux