mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
fb7770317f
PD#SWPL-145324 Problem: 1, using contiguous conter for type identify is not uniform distribution when compress for some tasks; 2, zram driver will alloc per-cpu contex for zstd, which will cause about 3MB memory; Solution: 1, using a fixed type array for uniform distribution of mix type selection; 2, create 2 context: one dedicated for kswapd task; another one dedicated for direct reclaim; Verify: t5m Change-Id: I06683383e06d9601c9e6522bcd0fbcfa68a55987 Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>