summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/clock.c
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2011-04-02 18:15:45 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:42:29 -0800
commit80126ffc8ce8a45968b174d54d2f4ce5173a7394 (patch)
treec8ccac14e18964d5cda5cd6df5821ec8974ac178 /arch/arm/mach-tegra/clock.c
parent94c3df8e013357feb576ae631f78aae21db2ad71 (diff)
ARM: tegra: power: Split Tegra3 CPU-G and CPU-LP dvfs
On Tegra3 CPU power is supplied by different rails in G-mode (VDD_CPU) and LP mode (VDD_CORE) - updated dvfs dependencies respectively. Original-Change-Id: Ifae8ae501b227a44e46ce1577bcd532e2e778322 Reviewed-on: http://git-master/r/25200 Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Tested-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com> Tested-by: Diwakar Tundlam <dtundlam@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Original-Change-Id: I96e6cb7e3dcdf8514714d2900d8f947b6438c95f Rebase-Id: R4d16a0002c701f6ee2f0f8c0f66c5313e4546d53
Diffstat (limited to 'arch/arm/mach-tegra/clock.c')
-rw-r--r--arch/arm/mach-tegra/clock.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index cce16b29aaf7..2fe6df739fd6 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -175,10 +175,16 @@ static void __clk_set_cansleep(struct clk *c)
if (child->parent != c)
continue;
- WARN(child->ops && child->ops->set_parent,
- "can't make child clock %s of %s "
- "sleepable if it's parent could change",
- child->name, c->name);
+ /* If set_parent operation is implemented for virtual cpu,
+ all possible parents are sleeping clocks - hence, no
+ warning. FIXME: another way to make this exception ? */
+ if(strcmp(child->name, "cpu")) {
+ WARN(child->ops && child->ops->set_parent,
+ "sleepable clock %s is not a sole parent"
+ " of its child %s - if child is reparented"
+ " only sleepable parents should be used",
+ c->name, child->name);
+ }
__clk_set_cansleep(child);
}