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>
This commit is contained in:
Tyler Nijmeh 2020-02-06 08:05:42 -08:00 committed by Ksawlii
parent 25da1fb9b2
commit f40f9398a3

View file

@ -80,7 +80,7 @@ static inline void decrement_wakelocks_number(void) {}
#ifdef CONFIG_PM_WAKELOCKS_GC
#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 LIST_HEAD(wakelocks_lru_list);