SysLink-IPC: SLPM - Avoid Hiber-timer creation from Hwi context
authorJuan Gutierrez <jgutierrez@ti.com>
Wed, 24 Nov 2010 06:16:34 +0000 (00:16 -0600)
committerSuman Anna <s-anna@ti.com>
Wed, 24 Nov 2010 19:32:25 +0000 (13:32 -0600)
commitc0478616bf325fa0c74781f9f231c76f41fefe2d
tree84c6f1457fa1d2ccb527cf3698297c823108ef97
parentd93cfc8b680e2af11ccb8f439e9d0d06960b7648
SysLink-IPC: SLPM - Avoid Hiber-timer creation from Hwi context

The instance for hibernation timer was created on SysM3 when the
first mailbox message is received and the hibernation flag is set.

This patch avoids the creation of the timer from the Hwi context.
The timer is refreshed whenever a mailbox message is received on
SysM3, and this refresh call creates the timer instance if not
present. The hibernation timer instance for SysM3 is now created
within the SLPM idle function, similar to AppM3.

This patch resolves the GateMutex assertion error with the new
BIOS 6.31.00.18, caused by the creation of the timer in the ISR.

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