cpu-boosting: Decrease timer from 2000ms to 500ms 53/298253/1
authorUnsung Lee <unsung.lee@samsung.com>
Fri, 1 Sep 2023 08:45:57 +0000 (17:45 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 4 Sep 2023 08:02:04 +0000 (17:02 +0900)
Decrease timer for checking additional PSIs from 2000ms to 500ms.
That is, if no addition PSIs are triggered during 500ms,
then cpu boosting level is restored.
This is because 2000ms is too long to check cpu contention is alleviated or not.

Change-Id: I4485d6499e1317a4af92398b2a7d5ef0053423a7
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resource-optimizer/cpu/cpu-boosting.c

index ecc245a..5d67fd8 100644 (file)
@@ -37,7 +37,7 @@ GMainContext *cpu_boosting_context;
 
 static guint g_latest_timer_id;
 
-#define CPU_CONTENTION_HANDLE_TIMEOUT_MSEC 2000
+#define CPU_CONTENTION_HANDLE_TIMEOUT_MSEC 500
 #define SOCK_PATH "/run/.resourced.socket"
 
 /**