X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-powerpc%2Ftopology.h;h=1e19cd00af25856445a44912051964b1fe456671;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=87362a05542b6ba5036d8631b5f20aa481651980;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/include/asm-powerpc/topology.h b/include/asm-powerpc/topology.h index 87362a055..1e19cd00a 100644 --- a/include/asm-powerpc/topology.h +++ b/include/asm-powerpc/topology.h @@ -4,9 +4,6 @@ #include -struct sys_device; -struct device_node; - #ifdef CONFIG_NUMA #include @@ -30,8 +27,6 @@ static inline int node_to_first_cpu(int node) return first_cpu(tmp); } -int of_node_to_nid(struct device_node *device); - #define pcibus_to_node(node) (-1) #define pcibus_to_cpumask(bus) (cpu_online_map) @@ -62,29 +57,10 @@ int of_node_to_nid(struct device_node *device); extern void __init dump_numa_cpu_topology(void); -extern int sysfs_add_device_to_node(struct sys_device *dev, int nid); -extern void sysfs_remove_device_from_node(struct sys_device *dev, int nid); - #else -static inline int of_node_to_nid(struct device_node *device) -{ - return 0; -} - static inline void dump_numa_cpu_topology(void) {} -static inline int sysfs_add_device_to_node(struct sys_device *dev, int nid) -{ - return 0; -} - -static inline void sysfs_remove_device_from_node(struct sys_device *dev, - int nid) -{ -} - - #include #endif /* CONFIG_NUMA */