aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Daney <[email protected]>2016-04-08 15:50:25 -0700
committerWill Deacon <[email protected]>2016-04-15 18:06:08 +0100
commit298535c00a2cbcd59e38f8f1c0c9ae7b9911e946 (patch)
tree722bd77c438600fb7ce8e204469b86a1344320ee /include
parent2bc4da1d2b4d828cb4e3a5593967556b1bd78898 (diff)
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<[email protected]> Signed-off-by: David Daney <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/linux/of.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 7fcb681baadf..76f07c84040f 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)