summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2011-04-12 13:51:32 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2011-04-12 13:58:35 +1000
commitbc2e31b92bfa294dc3dba8745ef3f2aae87ae60a (patch)
tree194e6546c45d39cff710049d3662e7d668123f0c
parentc39330c2aee5717b95e5b5a50d9993984520f0c2 (diff)
sched: fix sparc64 for sched_domain changes
Fixes this compile error: kernel/sched.c:7140: error: 'cpu_coregroup_mask' undeclared here (not in a function) Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--arch/sparc/include/asm/topology_64.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h
index 1c79f32734a0..8b9c556d630b 100644
--- a/arch/sparc/include/asm/topology_64.h
+++ b/arch/sparc/include/asm/topology_64.h
@@ -65,6 +65,10 @@ static inline int pcibus_to_node(struct pci_bus *pbus)
#define smt_capable() (sparc64_multi_core)
#endif /* CONFIG_SMP */
-#define cpu_coregroup_mask(cpu) (&cpu_core_map[cpu])
+extern cpumask_t cpu_core_map[NR_CPUS];
+static inline const struct cpumask *cpu_coregroup_mask(int cpu)
+{
+ return &cpu_core_map[cpu];
+}
#endif /* _ASM_SPARC64_TOPOLOGY_H */