]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mips: Select SPARSEMEM_EXTREME
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Fri, 9 Sep 2022 09:30:42 +0000 (11:30 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 9 Sep 2022 15:37:27 +0000 (17:37 +0200)
Commit 80ae8438b8ca ("MIPS: Add NUMA support for Loongson-3") has increased
.bss size of the Octeon kernel from 16k to 16M. Providing the conditions
for SPARSEMEM_EXTREME avoids the waste of memory.

Thomas has tested the loogsoon64 kernel, where .bss is being reduced by
this patch from 16.5M to 515k.

Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/Kconfig

index ec21f899924985fe8e57811a35d3790f439aeafa..25dd4c5a8ef505d66e7859de647a4734a6052e20 100644 (file)
@@ -2669,7 +2669,6 @@ config ARCH_FLATMEM_ENABLE
 
 config ARCH_SPARSEMEM_ENABLE
        bool
-       select SPARSEMEM_STATIC if !SGI_IP27
 
 config NUMA
        bool "NUMA Support"