aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <[email protected]>2009-09-24 17:48:44 +0930
committerIngo Molnar <[email protected]>2009-09-24 14:16:15 +0200
commitb0c6fbe458183cc7e1cab17be6efcbe7e435bad3 (patch)
tree938ef7c696bab68c28bd8668ae37a409b0b9069c
parent429a6e5e2c1fbe5d805aad123efbdb5f0c14769f (diff)
x86: Remove redundant non-NUMA topology functions
arch/x86/include/asm/topology.h declares inline fns cpu_to_node and cpumask_of_node for !NUMA, even though they are then declared as macros by asm-generic/topology.h, which is #included just below. The macros (which are the same) end up being used; these functions are just confusing. Noticed-by: Linus Torvalds <[email protected]> Signed-off-by: Rusty Russell <[email protected]> Cc: Jesse Barnes <[email protected]> Cc: "Greg Kroah-Hartman" <[email protected]> Cc: Yinghai Lu <[email protected]> Cc: Tejun Heo <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--arch/x86/include/asm/topology.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h
index 6f0695d744bf..25a92842dd99 100644
--- a/arch/x86/include/asm/topology.h
+++ b/arch/x86/include/asm/topology.h
@@ -165,21 +165,11 @@ static inline int numa_node_id(void)
return 0;
}
-static inline int cpu_to_node(int cpu)
-{
- return 0;
-}
-
static inline int early_cpu_to_node(int cpu)
{
return 0;
}
-static inline const struct cpumask *cpumask_of_node(int node)
-{
- return cpu_online_mask;
-}
-
static inline void setup_node_to_cpumask_map(void) { }
#endif