From: Youngjae Cho Date: Thu, 26 Dec 2024 10:31:00 +0000 (+0900) Subject: plugin-api: deviced: Add attributes to manage power lock X-Git-Tag: accepted/tizen/9.0/unified/20250115.070547^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e677b7f0ae8051dcece255a2090179c4e311de7a;p=platform%2Fcore%2Fsystem%2Flibsyscommon.git 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 --- 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,