android_kernel_sony_sdm845/kernel/power
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Angelo G. Del Regno 24b59982a7 treewide: Backport new vmalloc for large performance benefits
This is a backport from Linux 5.2-rc1 of a patch series to greatly enhance vmalloc's performance
especially on embedded systems, plus all of its dependencies that were missing in kernel 4.9.

For all the informations, refer to LKML: https://lkml.org/lkml/2018/10/19/786

Brief informations:
Currently an allocation of the new VA area is done over busy list iteration until a suitable hole
is found between two busy areas. Therefore each new allocation causes the list being grown.
Due to long list and different permissive parameters an allocation can take a long time on
embedded devices(milliseconds).

This patch organizes the vmalloc memory layout into free areas of the VMALLOC_START-VMALLOC_END range.
It uses a red-black tree that keeps blocks sorted by their offsets in pair with linked list
keeping the free space in order of increasing addresses.

Quote Phoronix:
With this patch from Uladzislau Rezki, calling vmalloc() can take up to 67% less time compared
to the behavior on Linux 5.1 and prior, at least with tests done by the developer under QEMU.

Personal tests are showing that the device is more responsive when memory pressure is
high and when huge allocations are to be done, it's also noticeably faster in this case, like
when starting Chrome with more than 100 opened tabs after a system reboot (so, an
uncached complete load of it).

Shameless kanged from:
https://github.com/sonyxperiadev/kernel / Pull Request 2016

Signed-off-by: sweetyicecare <gabrielseedev@outlook.com>
Signed-off-by: Aoihara <veronicadisa6@gmail.com>
Signed-off-by: KangMamles <imzea69@gmail.com>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:48:25 +07:00
..
autosleep.c
console.c
hibernate.c PM: hibernate: fix __setup handler error handling 2022-04-20 09:06:31 +02:00
Kconfig kernel/power: Import Sony Wakelock 2026-05-15 17:48:10 +07:00
main.c kernel/power: Import Sony Wakelock 2026-05-15 17:48:10 +07:00
Makefile kernel/power: Import Sony Wakelock 2026-05-15 17:48:10 +07:00
power.h
poweroff.c
process.c
qos.c kernel: power: Workaround for faulty libperfmgr config 2026-05-15 17:48:21 +07:00
snapshot.c treewide: Backport new vmalloc for large performance benefits 2026-05-15 17:48:25 +07:00
suspend.c kernel/power: Import Sony Wakelock 2026-05-15 17:48:10 +07:00
suspend_test.c PM: suspend: fix return value of __setup handler 2022-04-20 09:06:31 +02:00
swap.c Merge remote-tracking branch 'common/android-4.9-q' into lineage-18.1-caf-sdm845 2021-12-27 02:07:39 +02:00
user.c
wakelock.c PM: wakeup: simplify the output logic of pm_show_wakelocks() 2022-02-08 18:15:26 +01:00
wakeup_irq_debug.c kernel/power: Import Sony Wakelock 2026-05-15 17:48:10 +07:00
wakeup_reason.c