plugin-api: deviced: Add attributes to manage power lock 17/318217/1 accepted/tizen/9.0/unified/20250115.070547
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 26 Dec 2024 10:31:00 +0000 (19:31 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 14 Jan 2025 07:31:08 +0000 (16:31 +0900)
commite677b7f0ae8051dcece255a2090179c4e311de7a
tree11c3e9dba864b0a6306034d2f6ccc69867aa77ff
parentf797db4418b28a366e024df01794a24f4628d92f
plugin-api: deviced: Add attributes to manage power lock

DEVICED_POWER_ATTR_UINT64_3_CPU_LOCK
 : Takes 3 parameter and controls cpulock.
    - int  : acquire(1) or release(1) cpulock
    - pid_t: pid of requester
    - int  : timeout of cpulock, only effective when the first
             parameter is acquire(1)

DEVICED_POWER_ATTR_INT_CPU_LOCK_COUNT
 : Gets cpulock count

Change-Id: I8bc43727dfd8104b35d754865879b9a7ffa58b27
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/plugin-api/deviced/include/system/syscommon-plugin-deviced-power-interface.h