From 8a225f954d16a00ed28202edfab808ffcb69b342 Mon Sep 17 00:00:00 2001 From: Kalesh Singh Date: Tue, 14 Jan 2025 14:01:33 -0800 Subject: [PATCH] ANDROID: Enable PM_USERSPACE_AUTOSLEEP in gki_defconfig Android initiates autosuspend thread from a userspace service. Enable this option so that the kernel knows how to handle various pm_notification callback for when suspend/wakeup transitions are very frequent. Bug: 389989850 Change-Id: I86d2c98e6bc9dc2c24dddd29a6c3da192953afcf Signed-off-by: Kalesh Singh --- arch/arm64/configs/gki_defconfig | 1 + arch/x86/configs/gki_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/configs/gki_defconfig b/arch/arm64/configs/gki_defconfig index a0cc78d2232b..99fe0c1c0815 100644 --- a/arch/arm64/configs/gki_defconfig +++ b/arch/arm64/configs/gki_defconfig @@ -69,6 +69,7 @@ CONFIG_CMDLINE="console=ttynull stack_depot_disable=on cgroup_disable=pressure k CONFIG_CMDLINE_EXTEND=y # CONFIG_DMI is not set CONFIG_HIBERNATION=y +CONFIG_PM_USERSPACE_AUTOSLEEP=y CONFIG_PM_WAKELOCKS=y CONFIG_PM_WAKELOCKS_LIMIT=0 # CONFIG_PM_WAKELOCKS_GC is not set diff --git a/arch/x86/configs/gki_defconfig b/arch/x86/configs/gki_defconfig index c011a50bde24..801559e4527c 100644 --- a/arch/x86/configs/gki_defconfig +++ b/arch/x86/configs/gki_defconfig @@ -64,6 +64,7 @@ CONFIG_EFI=y CONFIG_CMDLINE_BOOL=y CONFIG_CMDLINE="console=ttynull stack_depot_disable=on cgroup_disable=pressure bootconfig" CONFIG_HIBERNATION=y +CONFIG_PM_USERSPACE_AUTOSLEEP=y CONFIG_PM_WAKELOCKS=y CONFIG_PM_WAKELOCKS_LIMIT=0 # CONFIG_PM_WAKELOCKS_GC is not set