numa: Move numa implementation to common code
authorAtish Patra <atish.patra@wdc.com>
Thu, 19 Nov 2020 00:38:26 +0000 (16:38 -0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 14 Jan 2021 23:08:55 +0000 (15:08 -0800)
commitae3c107cd8bea82cb7cb427d9c5d305b8ce72216
tree5063ffc33a2ba9198bc570feee0d174ad4bec12b
parenteb75541f8b4535cf22e22cd2e60734866868e818
numa: Move numa implementation to common code

ARM64 numa implementation is generic enough that RISC-V can reuse that
implementation with very minor cosmetic changes. This will help both
ARM64 and RISC-V in terms of maintanace and feature improvement

Move the numa implementation code to common directory so that both ISAs
can reuse this. This doesn't introduce any function changes for ARM64.

Signed-off-by: Atish Patra <atish.patra@wdc.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/arm64/Kconfig
arch/arm64/include/asm/numa.h
arch/arm64/mm/Makefile
drivers/base/Kconfig
drivers/base/Makefile
drivers/base/arch_numa.c [moved from arch/arm64/mm/numa.c with 100% similarity]
include/asm-generic/numa.h [new file with mode: 0644]