From: Wu Fengguang Date: Thu, 8 Jan 2009 02:09:10 +0000 (-0800) Subject: generic swap(): sparc: rename swap() to swap_ulong() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a8a27c974d0f09c61874b81bf9670f1478b649a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git generic swap(): sparc: rename swap() to swap_ulong() In preparation for the introduction of a generic swap() macro. Signed-off-by: Wu Fengguang Acked-by: David S. Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/sparc/kernel/sun4m_smp.c b/arch/sparc/kernel/sun4m_smp.c index 4f8d60586b07..8040376c4890 100644 --- a/arch/sparc/kernel/sun4m_smp.c +++ b/arch/sparc/kernel/sun4m_smp.c @@ -54,7 +54,8 @@ extern int __smp4m_processor_id(void); #define SMP_PRINTK(x) #endif -static inline unsigned long swap(volatile unsigned long *ptr, unsigned long val) +static inline unsigned long +swap_ulong(volatile unsigned long *ptr, unsigned long val) { __asm__ __volatile__("swap [%1], %0\n\t" : "=&r" (val), "=&r" (ptr) : @@ -90,7 +91,7 @@ void __cpuinit smp4m_callin(void) * to call the scheduler code. */ /* Allow master to continue. */ - swap(&cpu_callin_map[cpuid], 1); + swap_ulong(&cpu_callin_map[cpuid], 1); /* XXX: What's up with all the flushes? */ local_flush_cache_all();