PM/Sleep: Start killing wakelocks after two minutes of idle (120s)

Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>

Signed-off-by: ThunderStorms21th nalas <pinakastorm@gmail.com>
(cherry picked from commit 9445309c30e841387b7c603fade2e229be8384bd)
This commit is contained in:
Tyler Nijmeh 2020-02-06 08:05:42 -08:00 committed by xxmustafacooTR
parent 40d275b26e
commit 9f02fbd846
No known key found for this signature in database
GPG key ID: 520B6FE385CBF5C9

View file

@ -82,7 +82,7 @@ static inline void decrement_wakelocks_number(void) {}
#ifdef CONFIG_PM_WAKELOCKS_GC #ifdef CONFIG_PM_WAKELOCKS_GC
#define WL_GC_COUNT_MAX 100 #define WL_GC_COUNT_MAX 100
#define WL_GC_TIME_SEC 300 #define WL_GC_TIME_SEC 120 /* default : 300s */
static void __wakelocks_gc(struct work_struct *work); static void __wakelocks_gc(struct work_struct *work);
static LIST_HEAD(wakelocks_lru_list); static LIST_HEAD(wakelocks_lru_list);