SysLink-IPC: SLPM - Fix for self-hibernation not triggered consistently
authorJuan Gutierrez <jgutierrez@ti.com>
Fri, 3 Dec 2010 18:52:56 +0000 (12:52 -0600)
committerSuman Anna <s-anna@ti.com>
Mon, 6 Dec 2010 20:30:34 +0000 (14:30 -0600)
commitc93297fe556b6b443eb28804d1ca5813fcca06ad
tree65ed2d1ccf19e4bfdc25499c59e701de73e6c52b
parentfdba75670668530a38cbea34a35ddeb9cc9e4b58
SysLink-IPC: SLPM - Fix for self-hibernation not triggered consistently

The patch "SysLink-IPC: SLPM - Avoid Hiber-timer creation from Hwi context"
cleaned up some code in the SLPM idle function, and this change resulted
in the hibernation not getting triggered consistently due to a timing issue.

Once woken up by WUGEN, if the AppM3 idle function execution is slightly ahead
of the SysM3 idle function, then the SysM3 gptimer is refreshed before it
overflows causing the hibernation to never trigger.

This patch adds back some of the deleted changes in the patch mentioned above
to resolve the timing issue.

Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
Signed-off-by: Miguel Vadillo <vadillo@ti.com>
Signed-off-by: Paul Hunt <hunt@ti.com>
packages/ti/omap/slpm/idle.c