Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/mm: Drop multiple definition of mm_is_core_local

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Aneesh Kumar K.V and committed by
Michael Ellerman
9d4dab11 13dce033

+13 -12
+13
arch/powerpc/include/asm/tlb.h
··· 46 46 #endif 47 47 } 48 48 49 + #ifdef CONFIG_SMP 50 + static inline int mm_is_core_local(struct mm_struct *mm) 51 + { 52 + return cpumask_subset(mm_cpumask(mm), 53 + topology_sibling_cpumask(smp_processor_id())); 54 + } 55 + #else 56 + static inline int mm_is_core_local(struct mm_struct *mm) 57 + { 58 + return 1; 59 + } 60 + #endif 61 + 49 62 #endif /* __KERNEL__ */ 50 63 #endif /* __ASM_POWERPC_TLB_H */
-6
arch/powerpc/mm/tlb-radix.c
··· 165 165 EXPORT_SYMBOL(radix__local_flush_tlb_page); 166 166 167 167 #ifdef CONFIG_SMP 168 - static int mm_is_core_local(struct mm_struct *mm) 169 - { 170 - return cpumask_subset(mm_cpumask(mm), 171 - topology_sibling_cpumask(smp_processor_id())); 172 - } 173 - 174 168 void radix__flush_tlb_mm(struct mm_struct *mm) 175 169 { 176 170 unsigned long pid;
-6
arch/powerpc/mm/tlb_nohash.c
··· 215 215 216 216 static DEFINE_RAW_SPINLOCK(tlbivax_lock); 217 217 218 - static int mm_is_core_local(struct mm_struct *mm) 219 - { 220 - return cpumask_subset(mm_cpumask(mm), 221 - topology_sibling_cpumask(smp_processor_id())); 222 - } 223 - 224 218 struct tlb_flush_param { 225 219 unsigned long addr; 226 220 unsigned int pid;