PM: Execute PM suspend/resume callbacks in a task
authorShahid Akhtar <sakhtar@ti.com>
Tue, 5 Jun 2012 19:14:44 +0000 (14:14 -0500)
committerSuman Anna <s-anna@ti.com>
Tue, 17 Jul 2012 11:34:29 +0000 (06:34 -0500)
commitd65668dcf15de76784583bf7322229c0af966a8a
tree3c88a086892ac14fa523ebc9c82dcded11014155
parent28ccf148c45d7d4de2474f2c21b6b66b4f6c96f9
PM: Execute PM suspend/resume callbacks in a task

A new PM task has been added in a regular SYS/BIOS environment
to execute the various user registered suspend & resume callback
functions. This allows the users to use semaphores in the callback
functions.

The new task is not required for SMP/BIOS because the SMP/BIOS
already executes all the Power Suspend functionality within a
dedicated task on each of the IPU cores. The BIOS Power_suspend
calls the callback functions in these task contexts.

NOTE: The callback functions are ONLY called by CORE0 in SMP/BIOS.

Signed-off-by: Shahid Akhtar <sakhtar@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
src/ti/pm/IpcPower.c
src/ti/pm/IpcPowerDsp.c