aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/topology.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-05-06 14:59:18 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-06 14:59:18 -0400
commit5047f09b56d0bc3c21aec9cb16de60283da645c6 (patch)
tree09a07554b933c3bb912ce3bfc0ea7c7e1f16041c /include/asm-powerpc/topology.h
parentc0f1fe00c3923135b2c2f443448585482da8a53e (diff)
parent5528e568a760442e0ec8fd2dea1f0791875a066b (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/asm-powerpc/topology.h')
-rw-r--r--include/asm-powerpc/topology.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/asm-powerpc/topology.h b/include/asm-powerpc/topology.h
index 4cf340ccb4cd..19c575f39164 100644
--- a/include/asm-powerpc/topology.h
+++ b/include/asm-powerpc/topology.h
@@ -3,6 +3,9 @@
3#ifdef __KERNEL__ 3#ifdef __KERNEL__
4 4
5 5
6struct sys_device;
7struct device_node;
8
6#ifdef CONFIG_NUMA 9#ifdef CONFIG_NUMA
7 10
8#include <asm/mmzone.h> 11#include <asm/mmzone.h>
@@ -26,6 +29,8 @@ static inline int node_to_first_cpu(int node)
26 return first_cpu(tmp); 29 return first_cpu(tmp);
27} 30}
28 31
32int of_node_to_nid(struct device_node *device);
33
29#define pcibus_to_node(node) (-1) 34#define pcibus_to_node(node) (-1)
30#define pcibus_to_cpumask(bus) (cpu_online_map) 35#define pcibus_to_cpumask(bus) (cpu_online_map)
31 36
@@ -56,10 +61,29 @@ static inline int node_to_first_cpu(int node)
56 61
57extern void __init dump_numa_cpu_topology(void); 62extern void __init dump_numa_cpu_topology(void);
58 63
64extern int sysfs_add_device_to_node(struct sys_device *dev, int nid);
65extern void sysfs_remove_device_from_node(struct sys_device *dev, int nid);
66
59#else 67#else
60 68
69static inline int of_node_to_nid(struct device_node *device)
70{
71 return 0;
72}
73
61static inline void dump_numa_cpu_topology(void) {} 74static inline void dump_numa_cpu_topology(void) {}
62 75
76static inline int sysfs_add_device_to_node(struct sys_device *dev, int nid)
77{
78 return 0;
79}
80
81static inline void sysfs_remove_device_from_node(struct sys_device *dev,
82 int nid)
83{
84}
85
86
63#include <asm-generic/topology.h> 87#include <asm-generic/topology.h>
64 88
65#endif /* CONFIG_NUMA */ 89#endif /* CONFIG_NUMA */