projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ade43f
)
[PATCH] ppc64: topology API fix
author
Anton Blanchard
<
[email protected]
>
Tue, 2 Aug 2005 04:11:46 +0000
(21:11 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 2 Aug 2005 04:38:01 +0000
(21:38 -0700)
Dont include asm-generic/topology.h unconditionally, we end up overriding
all the ppc64 specific functions when NUMA is on.
Signed-off-by: Anton Blanchard <
[email protected]
>
Acked-by: Paul Mackerras <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/asm-ppc64/topology.h
patch
|
blob
|
history
diff --git
a/include/asm-ppc64/topology.h
b/include/asm-ppc64/topology.h
index fcdcfd26a26bcbc41b6ed18cfd4e3c98bade84f4..1e9b1907323069f2acc3e446f32a43fcd909eb4a 100644
(file)
--- a/
include/asm-ppc64/topology.h
+++ b/
include/asm-ppc64/topology.h
@@
-33,6
+33,7
@@
static inline int node_to_first_cpu(int node)
return first_cpu(tmp);
}
+#define pcibus_to_node(node) (-1)
#define pcibus_to_cpumask(bus) (cpu_online_map)
#define nr_cpus_node(node) (nr_cpus_in_node[node])
@@
-59,8
+60,10
@@
static inline int node_to_first_cpu(int node)
.nr_balance_failed = 0, \
}
-#e
ndif /* CONFIG_NUMA */
+#e
lse
#include <asm-generic/topology.h>
+#endif /* CONFIG_NUMA */
+
#endif /* _ASM_PPC64_TOPOLOGY_H */