mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-04-13 09:59:31 +00:00

Use the generic numa implementation to add NUMA support for RISC-V. This is based on Greentime's patch[1] but modified to use generic NUMA implementation and few more fixes. [1] https://lkml.org/lkml/2020/1/10/233 Co-developed-by: Greentime Hu <greentime.hu@sifive.com> Signed-off-by: Greentime Hu <greentime.hu@sifive.com> Signed-off-by: Atish Patra <atish.patra@wdc.com> Reviewed-by: Anup Patel <anup@brainfault.org> Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
13 lines
266 B
C
13 lines
266 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __ASM_MMZONE_H
|
|
#define __ASM_MMZONE_H
|
|
|
|
#ifdef CONFIG_NUMA
|
|
|
|
#include <asm/numa.h>
|
|
|
|
extern struct pglist_data *node_data[];
|
|
#define NODE_DATA(nid) (node_data[(nid)])
|
|
|
|
#endif /* CONFIG_NUMA */
|
|
#endif /* __ASM_MMZONE_H */
|