Add some common code for splitting the memory into N emulated NUMA memory
nodes.
Individual architecture can then enable selecting this option and use the
existing numa=fake=<N> kernel argument to enable it.
Memory is always split into equally sized chunks.
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Co-developed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: “Rafael J. Wysocki" <rafael@kernel.org>