Re: [PATCHv4 2/8] ARM: OMAP3+: voltage/pwrdm/clkdm/clock add recursive usecount tracking

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

 



On Friday 13 July 2012 07:49 PM, Tero Kristo wrote:
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. This patch also adds support for usecount
tracking on powerdomain level and autoidle flag for clocks that
are hardware controlled and should be skipped in usecount
calculations.

Signed-off-by: Tero Kristo<t-kristo@xxxxxx>
Cc: Paul Walmsley<paul@xxxxxxxxx>
Cc: Kevin Hilman<khilman@xxxxxx>

Reviewed by: Rajendra Nayak <rnayak@xxxxxx>

---
  arch/arm/mach-omap2/clkt_iclk.c         |   21 +++++++++++
  arch/arm/mach-omap2/clockdomain.c       |   59 +++++++++++++++++++++++++++++-
  arch/arm/mach-omap2/clockdomain.h       |    2 +
  arch/arm/mach-omap2/dpll3xxx.c          |   19 ++++++++++
  arch/arm/mach-omap2/powerdomain.c       |   35 ++++++++++++++++++
  arch/arm/mach-omap2/powerdomain.h       |    5 +++
  arch/arm/plat-omap/clock.c              |    6 +++
  arch/arm/plat-omap/include/plat/clock.h |    2 +
  8 files changed, 147 insertions(+), 2 deletions(-)



  	list_add(&clk->node,&clocks);
+	/*
+	 * If clock has no ops, it is handled by hardware and thus will
+	 * idle automatically
+	 */
+	if (clk->ops ==&clkops_null)
+		clk->autoidle = true;

I was a little skeptical about this when I first saw it. But I am
sure you would have thought through :)


--
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