msm: pm-8x60: Add clock debug to idle code path.
Clock debug during is suspend is enabled in pm-8x60.
This code has been added to the idle code path to be
able to debug the clocks that are left on and
result in apps not voting for XO during Idle PC.
Change-Id: Ifae4317d58f5a97a91fb40e4d6c236ca4bf1453f
Signed-off-by: Karthik Parsha <kparsha@codeaurora.org>
diff --git a/arch/arm/mach-msm/pm-8x60.c b/arch/arm/mach-msm/pm-8x60.c
index 754d76f..9bdc2b3 100644
--- a/arch/arm/mach-msm/pm-8x60.c
+++ b/arch/arm/mach-msm/pm-8x60.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
+/* Copyright (c) 2010-2012, Code Aurora Forum. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -63,6 +63,7 @@
MSM_PM_DEBUG_SUSPEND_LIMITS = BIT(2),
MSM_PM_DEBUG_CLOCK = BIT(3),
MSM_PM_DEBUG_RESET_VECTOR = BIT(4),
+ MSM_PM_DEBUG_IDLE_CLK = BIT(5),
MSM_PM_DEBUG_IDLE = BIT(6),
MSM_PM_DEBUG_IDLE_LIMITS = BIT(7),
MSM_PM_DEBUG_HOTPLUG = BIT(8),
@@ -921,6 +922,9 @@
if (sleep_delay == 0) /* 0 would mean infinite time */
sleep_delay = 1;
+ if (MSM_PM_DEBUG_IDLE_CLK & msm_pm_debug_mask)
+ clock_debug_print_enabled();
+
ret = msm_rpmrs_enter_sleep(
sleep_delay, msm_pm_idle_rs_limits, true, notify_rpm);
if (!ret) {