diff options
author | David Daney <david.daney@cavium.com> | 2016-04-08 22:50:25 (GMT) |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2016-04-15 17:06:08 (GMT) |
commit | 298535c00a2cbcd59e38f8f1c0c9ae7b9911e946 (patch) | |
tree | 722bd77c438600fb7ce8e204469b86a1344320ee /include | |
parent | 2bc4da1d2b4d828cb4e3a5593967556b1bd78898 (diff) | |
download | linux-298535c00a2cbcd59e38f8f1c0c9ae7b9911e946.tar.xz |
of, numa: Add NUMA of binding implementation.
Add device tree parsing for NUMA topology using device
"numa-node-id" property in distance-map and cpu nodes.
This is a complete rewrite of a previous patch by:
Ganapatrao Kulkarni<gkulkarni@caviumnetworks.com>
Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/of.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 7fcb681..76f07c8 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -685,6 +685,15 @@ static inline int of_node_to_nid(struct device_node *device) } #endif +#ifdef CONFIG_OF_NUMA +extern int of_numa_init(void); +#else +static inline int of_numa_init(void) +{ + return -ENOSYS; +} +#endif + static inline struct device_node *of_find_matching_node( struct device_node *from, const struct of_device_id *matches) |