Skip to content

Commit 66fed48

Browse files
ValdikSSigorpecovnik
authored andcommitted
sunxi, sunxi64, sun60iw2: enable MGLRU in kernel config
This enables and activates Multi-generational LRU by default. https://docs.kernel.org/admin-guide/mm/multigen_lru.html
1 parent 66a626c commit 66fed48

7 files changed

Lines changed: 28 additions & 1 deletion

config/kernel/linux-sun60iw2-vendor.config

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,10 @@ CONFIG_MEMFD_CREATE=y
19641964
CONFIG_SECRETMEM=y
19651965
# CONFIG_ANON_VMA_NAME is not set
19661966
# CONFIG_USERFAULTFD is not set
1967-
# CONFIG_LRU_GEN is not set
1967+
CONFIG_LRU_GEN=y
1968+
CONFIG_LRU_GEN_ENABLED=y
1969+
# CONFIG_LRU_GEN_STATS is not set
1970+
CONFIG_LRU_GEN_WALKS_MMU=y
19681971
CONFIG_ARCH_SUPPORTS_PER_VMA_LOCK=y
19691972
CONFIG_PER_VMA_LOCK=y
19701973
CONFIG_LOCK_MM_AND_FIND_VMA=y

config/kernel/linux-sunxi-current.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2921,3 +2921,7 @@ CONFIG_TEST_IDA=m
29212921
CONFIG_TEST_VMALLOC=m
29222922
CONFIG_TEST_DYNAMIC_DEBUG=m
29232923
CONFIG_TEST_MEMCAT_P=m
2924+
CONFIG_LRU_GEN=y
2925+
CONFIG_LRU_GEN_ENABLED=y
2926+
# CONFIG_LRU_GEN_STATS is not set
2927+
CONFIG_LRU_GEN_WALKS_MMU=y

config/kernel/linux-sunxi-edge.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2909,3 +2909,7 @@ CONFIG_TEST_IDA=m
29092909
CONFIG_TEST_VMALLOC=m
29102910
CONFIG_TEST_DYNAMIC_DEBUG=m
29112911
CONFIG_TEST_MEMCAT_P=m
2912+
CONFIG_LRU_GEN=y
2913+
CONFIG_LRU_GEN_ENABLED=y
2914+
# CONFIG_LRU_GEN_STATS is not set
2915+
CONFIG_LRU_GEN_WALKS_MMU=y

config/kernel/linux-sunxi-legacy.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,3 +2968,7 @@ CONFIG_TEST_IDA=m
29682968
CONFIG_TEST_VMALLOC=m
29692969
CONFIG_TEST_DYNAMIC_DEBUG=m
29702970
CONFIG_TEST_MEMCAT_P=m
2971+
CONFIG_LRU_GEN=y
2972+
CONFIG_LRU_GEN_ENABLED=y
2973+
# CONFIG_LRU_GEN_STATS is not set
2974+
CONFIG_LRU_GEN_WALKS_MMU=y

config/kernel/linux-sunxi64-current.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2855,3 +2855,7 @@ CONFIG_FUNCTION_TRACER=y
28552855
CONFIG_FTRACE_SYSCALLS=y
28562856
# CONFIG_STRICT_DEVMEM is not set
28572857
# CONFIG_RUNTIME_TESTING_MENU is not set
2858+
CONFIG_LRU_GEN=y
2859+
CONFIG_LRU_GEN_ENABLED=y
2860+
# CONFIG_LRU_GEN_STATS is not set
2861+
CONFIG_LRU_GEN_WALKS_MMU=y

config/kernel/linux-sunxi64-edge.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2842,3 +2842,7 @@ CONFIG_FUNCTION_TRACER=y
28422842
CONFIG_FTRACE_SYSCALLS=y
28432843
# CONFIG_STRICT_DEVMEM is not set
28442844
# CONFIG_RUNTIME_TESTING_MENU is not set
2845+
CONFIG_LRU_GEN=y
2846+
CONFIG_LRU_GEN_ENABLED=y
2847+
# CONFIG_LRU_GEN_STATS is not set
2848+
CONFIG_LRU_GEN_WALKS_MMU=y

config/kernel/linux-sunxi64-legacy.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3004,3 +3004,7 @@ CONFIG_TEST_BPF=m
30043004
CONFIG_TEST_BLACKHOLE_DEV=m
30053005
CONFIG_TEST_DYNAMIC_DEBUG=m
30063006
CONFIG_TEST_MEMCAT_P=m
3007+
CONFIG_LRU_GEN=y
3008+
CONFIG_LRU_GEN_ENABLED=y
3009+
# CONFIG_LRU_GEN_STATS is not set
3010+
CONFIG_LRU_GEN_WALKS_MMU=y

0 commit comments

Comments
 (0)