power: Add detailed description to power lock API usage 46/323446/1 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20250429.162021
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 28 Apr 2025 11:44:07 +0000 (20:44 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 28 Apr 2025 11:55:56 +0000 (20:55 +0900)
commit4cabb594a2fd6b00a45fec6128a216ca7331e697
tree25c166793e96e26c36ae476352974da226f13cc0
parent582f01e6642c6992eddfe68e4dd0a4c1600bf64e
power: Add detailed description to power lock API usage

device_power_request_lock() follows below rule

1. If the same application requests the same power lock more than twice before it is released or expired,
   the timeout will be updated to the latest requested time.

2. If different applications request the same power lock type,
   the power state timeout will be set to the maximum of the requested timeouts.

Above rule and scenario explanations are added.

Change-Id: Ic0f7a435496913caeee6ae64fee3dc3223e545b0
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
include/power.h