kernel_samsung_a53x/kernel/power
Sultan Alsawaf a163b49c80 PM / freezer: Reduce freeze timeout to 1 second for Android
Freezing processes on Android usually takes less than 100 ms, and if it
takes longer than that to the point where the 20 second freeze timeout is
reached, it's because the remaining processes to be frozen are deadlocked
waiting for something from a process which is already frozen. There's no
point in burning power trying to freeze for that long, so reduce the freeze
timeout to a very generous 1 second for Android and don't let anything mess
with it.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: Panchajanya1999 <kernel@panchajanya.dev>
(cherry picked from commit 72fc44bd8bcfb6d1cbaafb2053173cd985d81d0c)
(cherry picked from commit 7097f6cabd228cf426da77ee71088e56beba3cd0)
(cherry picked from commit 4f1c2d26818d846c0aea6713652e2a0eaa6a23c4)
(cherry picked from commit d416b35f8187c0605ac8816e4d771288514876f1)
2024-12-17 20:32:18 +01:00
..
autosleep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
console.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
energy_model.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hibernate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
main.c PM / freezer: Reduce freeze timeout to 1 second for Android 2024-11-19 18:05:37 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
power.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
poweroff.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
process.c PM / freezer: Reduce freeze timeout to 1 second for Android 2024-12-17 20:32:18 +01:00
qos.c qos: Don't allow userspace to impose restrictions on CPU idle levels 2024-11-19 18:05:02 +01:00
snapshot.c PM: hibernate: Clean up sync_read handling in snapshot_write_next() 2024-11-18 11:43:24 +01:00
suspend.c PM: suspend: Set mem_sleep_current during kernel command line setup 2024-11-19 09:22:17 +01:00
suspend_test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
swap.c PM: hibernate: Enforce ordering during image compression/decompression 2024-11-18 12:12:55 +01:00
user.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wakelock.c power/wakelock: Add a timeout to wakelocks globally 2024-11-19 18:06:07 +01:00
wakeup_reason.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00