[RFC/RFT PATCH v3 1/1] arc: add sparsemem support

2020-08-30 Thread Mike Rapoport
From: Mike Rapoport Signed-off-by: Mike Rapoport --- arch/arc/Kconfig | 10 ++ arch/arc/include/asm/sparsemem.h | 13 + arch/arc/mm/init.c | 6 +- 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 arch/arc/include/asm/spa

[RFC/RFT PATCH v3 0/1] arc: add sparsemem support

2020-08-30 Thread Mike Rapoport
From: Mike Rapoport Hi, This is yet another attempt to enable SPARSEMEM on ARC. I've boot tested it on nSIM with haps_hs_defconfig with highmem and sparsemem enabled. With sparsemem the kernel text becomes a bit smaller, but bss and data are slightly increased: $ size discontig/vmlinux sparse