mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
Attempt to get the memory and CPU NUMA node via of_numa. If that fails, default the dummy NUMA node and map all memory and CPUs to node 0. Tested-by: Shannon Zhao <[email protected]> Reviewed-by: Robert Richter <[email protected]> Signed-off-by: Ganapatrao Kulkarni <[email protected]> Signed-off-by: David Daney <[email protected]> Signed-off-by: Will Deacon <[email protected]>
13 lines
227 B
C
13 lines
227 B
C
#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 */
|