summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/cpuidle.c
diff options
context:
space:
mode:
authorPrashant Gaikwad <pgaikwad@nvidia.com>2013-02-08 18:42:37 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:04:40 -0700
commit80f205bd97c63f86e12d6cace5348f83012c82c1 (patch)
treee4746dfbbdbca1d8a452343b53a208779da9efa7 /arch/arm/mach-tegra/cpuidle.c
parentc753d777908766b8662066ced5e6f6819ef7e04d (diff)
ARM: Tegra: Attach idle state to MC clock domain
Attach cpuidle state to MC clock domain. This state will be enabled only when MC clock domain is off. In other words, we can stop MC clock in cpuidle only when all memory clients monitored by MC clock domain are runtime suspended. Bug 1010971 Change-Id: Id0ea8a917d2c2789e81c66ee343b93b57d1aa3e4 Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-on: http://git-master/r/146807 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/cpuidle.c')
-rw-r--r--arch/arm/mach-tegra/cpuidle.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/cpuidle.c b/arch/arm/mach-tegra/cpuidle.c
index 4af96cdcdaf9..e414f5da93e7 100644
--- a/arch/arm/mach-tegra/cpuidle.c
+++ b/arch/arm/mach-tegra/cpuidle.c
@@ -44,6 +44,7 @@
#include <asm/cpuidle.h>
#include <mach/irqs.h>
+#include <mach/pm_domains.h>
#include <trace/events/nvpower.h>
@@ -192,6 +193,10 @@ static int tegra_cpuidle_register_device(struct cpuidle_driver *drv,
kfree(dev);
return -EIO;
}
+
+ if (cpu == 0)
+ pm_genpd_attach_cpuidle(&tegra_mc_clk.gpd, 2, dev);
+
return 0;
}