From e677b7f0ae8051dcece255a2090179c4e311de7a Mon Sep 17 00:00:00 2001 From: Youngjae Cho Date: Thu, 26 Dec 2024 19:31:00 +0900 Subject: [PATCH] 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 --- .../include/system/syscommon-plugin-deviced-power-interface.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-power-interface.h b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-power-interface.h index cb236e0..4fdf4bf 100644 --- a/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-power-interface.h +++ b/src/plugin-api/deviced/include/system/syscommon-plugin-deviced-power-interface.h @@ -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, -- 2.34.1