PM: Add new API to control suspend process 1.10.06.15
authorShahid Akhtar <sakhtar@ti.com>
Wed, 28 Mar 2012 18:34:46 +0000 (13:34 -0500)
committerSuman Anna <s-anna@ti.com>
Fri, 13 Apr 2012 22:22:07 +0000 (17:22 -0500)
commit5be0fbb58a6ffe02956b69660a4f7c59b3ce6b03
tree4266fff2713a43e4fbfbabdd805a9b33622f1601
parent63c232ace2266f402767e6477bf50ad8a647a16f
PM: Add new API to control suspend process

Added new API to allow applications/tasks on IPU or DSP to
control the suspend ability on the processors they are
executing on. The slave processors ignore the SUSPEND message
if user has disabled suspend.

These API compliment the existing IpcPower_wakeLock and
IpcPower_wakeUnlock API, but also allow the clocks to be cut
for better power savings.

New API added are:
UInt IpcPower_hibernateLock()
UInt IpcPower_hibernateUnlock()
Bool IpcPower_canHibernate()

The first 2 API return the current number of tasks holding
the suspend lock, and the last API returns if the processor
is allowed to suspend or not.

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