aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-arm/numa.h
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-02-15 13:32:20 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-02-15 13:32:20 +0000
commit096578b4e489f87e2a66b213108d511d15b4d9be (patch)
tree1eb724b854940baab7974283db86a14d3f2c76a5 /xen/include/asm-arm/numa.h
parent89697a13da4262169e6e1c3a9f4e2dee17d143b7 (diff)
downloadxen-096578b4e489f87e2a66b213108d511d15b4d9be.tar.gz
xen-096578b4e489f87e2a66b213108d511d15b4d9be.tar.bz2
xen-096578b4e489f87e2a66b213108d511d15b4d9be.zip
xen: move XEN_SYSCTL_physinfo, XEN_SYSCTL_numainfo and XEN_SYSCTL_topologyinfo to common code
Move XEN_SYSCTL_physinfo, XEN_SYSCTL_numainfo and XEN_SYSCTL_topologyinfo from x86/sysctl.c to common/sysctl.c. The implementation of XEN_SYSCTL_physinfo is mostly generic but needs to fill in few arch specific details: introduce arch_do_physinfo to do that. The implementation of XEN_SYSCTL_physinfo relies on two global variables: total_pages and cpu_khz. Make them available on ARM. Implement node_spanned_pages and __node_distance on ARM, assuming 1 numa node for now. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Acked-by: Keir Fraser <keir@xen.org> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/asm-arm/numa.h')
-rw-r--r--xen/include/asm-arm/numa.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/include/asm-arm/numa.h b/xen/include/asm-arm/numa.h
index a1b1f584f8..86f0183c95 100644
--- a/xen/include/asm-arm/numa.h
+++ b/xen/include/asm-arm/numa.h
@@ -10,6 +10,10 @@ static inline __attribute__((pure)) int phys_to_nid(paddr_t addr)
return 0;
}
+/* XXX: implement NUMA support */
+#define node_spanned_pages(nid) (total_pages)
+#define __node_distance(a, b) (20)
+
#endif /* __ARCH_ARM_NUMA_H */
/*
* Local variables: