msm: pm-stats: fix the bug in pm stats refactor
Return value of msm_timer_get_sclk_time api is int64_t. Storing the
return value in integer would lead to inconsistencies in pm_stats.
CRs-fixed: 375038
Change-Id: I2c73b387ef01db3a7f71cd1b21b135bea2a475fa
Signed-off-by: Anji Jonnala <anjir@codeaurora.org>
diff --git a/arch/arm/mach-msm/pm2.c b/arch/arm/mach-msm/pm2.c
index ae7a3cd..7a8e4c3 100644
--- a/arch/arm/mach-msm/pm2.c
+++ b/arch/arm/mach-msm/pm2.c
@@ -1280,7 +1280,7 @@
static int64_t msm_pm_timer_enter_suspend(int64_t *period)
{
- int time = 0;
+ int64_t time = 0;
time = msm_timer_get_sclk_time(period);
if (!time)