plugin-api: deviced: Add attributes to manage power lock 85/317185/1 accepted/tizen/unified/20250115.124136 accepted/tizen/unified/x/20250115.142716
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 26 Dec 2024 10:31:00 +0000 (19:31 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Thu, 26 Dec 2024 10:31:52 +0000 (19:31 +0900)
commit324c3fe327590454f9c5eafb15863bda83922bea
tree11c3e9dba864b0a6306034d2f6ccc69867aa77ff
parentfcd495d666b0d337a1880de35822ebde3f96e795
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