diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2011-04-12 00:00:40 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-04-12 02:46:41 -0400 |
commit | 3905c54f2bd2c6f937f87307987ca072eabc3e7b (patch) | |
tree | 553aab7b0056cdcd0c44a5e4cacf0ae7be2b06c9 /arch | |
parent | 60495e7760d8ee364695006af37309b0755e0e17 (diff) |
sched, sparc64: Turn cpu_coregroup_mask() into a real function
This compile error triggers on Sparc64:
kernel/sched.c:7140: error: 'cpu_coregroup_mask' undeclared here (not in a function)
Because after the recent scheduler domain cleanups the scheduler
uses this arch method as a function pointer in a scheduler
topology data structure - which is not possible with a macro.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20110412140040.3020ef55.sfr@canb.auug.org.au
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/include/asm/topology_64.h | 6 |
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) | |||
65 | #define smt_capable() (sparc64_multi_core) | 65 | #define smt_capable() (sparc64_multi_core) |
66 | #endif /* CONFIG_SMP */ | 66 | #endif /* CONFIG_SMP */ |
67 | 67 | ||
68 | #define cpu_coregroup_mask(cpu) (&cpu_core_map[cpu]) | 68 | extern cpumask_t cpu_core_map[NR_CPUS]; |
69 | static inline const struct cpumask *cpu_coregroup_mask(int cpu) | ||
70 | { | ||
71 | return &cpu_core_map[cpu]; | ||
72 | } | ||
69 | 73 | ||
70 | #endif /* _ASM_SPARC64_TOPOLOGY_H */ | 74 | #endif /* _ASM_SPARC64_TOPOLOGY_H */ |