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)
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

index cb236e00ca87b11267b5e2b718d5ee2ea52b05fb..4fdf4bfc7f22187b82d556ca4b1bdff555fb31bc 100644 (file)
@@ -40,6 +40,8 @@ extern "C" {
 #define DEVICED_POWER_ATTR_INT_ADD_DOZE_SOURCE         (1ULL << 6)
 #define DEVICED_POWER_ATTR_INT_REMOVE_DOZE_SOURCE      (1ULL << 7)
 #define DEVICED_POWER_ATTR_INT_DOZE_MODE               (1ULL << 8)
+#define DEVICED_POWER_ATTR_UINT64_3_CPU_LOCK           (1ULL << 9)
+#define DEVICED_POWER_ATTR_INT_CPU_LOCK_COUNT          (1ULL << 10)
 
 enum {
        DEVICED_POWER_STATE_MIN_INDEX,