power: add timeout not to permit permanent power lock 00/57700/6
authorTaeyoung Kim <ty317.kim@samsung.com>
Fri, 22 Jan 2016 00:28:10 +0000 (09:28 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Sat, 30 Jul 2016 03:24:03 +0000 (20:24 -0700)
commitd5de302eb00d73bd8cf9e85600b60e44d9f9278a
tree45c8296914b301aacd5673963d469f8f86a412f3
parent12abab31599ce549297531b8f70acc3d8dfb7581
power: add timeout not to permit permanent power lock

- If an app requests permanent power lock and does not
  release the powr lock, power comsumption will be increased
  dramatically. This is not good for the platform.

- Now, a timeout is added not to permit permanent power lock.
  Even if an app requests permanent power lock, the api
  adds timeout with maximum lock time (currently 10 minutes)
  internally. If the timeout is expired, the permanent power
  lock is released.

- Only the way to keep the power lock is to use the platform
  apis which use power lock internally. For example, if an
  app plays music using MM apis, the power lock will be kept
  sinc the MM apis request power lock internally.

Change-Id: I3f11df904f61f720081e5ab63e4e4da130dc85dc
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
CMakeLists.txt
packaging/capi-system-device.spec
src/power.c