ARM: tegra11x: Fix wake-up time adjustment
authorBo Yan <byan@nvidia.com>
Mon, 4 Feb 2013 19:09:57 +0000 (11:09 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:57:38 +0000 (12:57 -0700)
commitd30bfa06cf05366922e471e5b407c1eb091eeee6
treed89cdf1e4e8e2f7d71aa722e494624746b78a0a6
parent3838709bce5978dcf19943cb9b299a3d1368ef5f
ARM: tegra11x: Fix wake-up time adjustment

The wake up time adjustment for per-core CPU power down entry has
a few issues: the logic of checking masking bit is wrong and
unnecessary, the timer function for getting context is not used
elsewhere and seems redundant, the calculating statement itself
is confusing.

This patch aims to fix issues above.

Change-Id: Id717f50005e0c32db80af786d9b1fbbe628c196a
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/197065
(cherry picked from commit 544629015e3a2924ea094e9809131dd0be30954d)
Reviewed-on: http://git-master/r/200855
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
arch/arm/mach-tegra/cpuidle-t11x.c
arch/arm/mach-tegra/timer.c
arch/arm/mach-tegra/timer.h