diff options
Diffstat (limited to 'arch/hexagon')
| -rw-r--r-- | arch/hexagon/include/asm/cmpxchg.h | 10 | ||||
| -rw-r--r-- | arch/hexagon/kernel/smp.c | 2 | 
2 files changed, 6 insertions, 6 deletions
| diff --git a/arch/hexagon/include/asm/cmpxchg.h b/arch/hexagon/include/asm/cmpxchg.h index cdb705e1496a..bf6cf5579cf4 100644 --- a/arch/hexagon/include/asm/cmpxchg.h +++ b/arch/hexagon/include/asm/cmpxchg.h @@ -9,7 +9,7 @@  #define _ASM_CMPXCHG_H  /* - * __xchg - atomically exchange a register and a memory location + * __arch_xchg - atomically exchange a register and a memory location   * @x: value to swap   * @ptr: pointer to memory   * @size:  size of the value @@ -19,8 +19,8 @@   * Note:  there was an errata for V2 about .new's and memw_locked.   *   */ -static inline unsigned long __xchg(unsigned long x, volatile void *ptr, -				   int size) +static inline unsigned long +__arch_xchg(unsigned long x, volatile void *ptr, int size)  {  	unsigned long retval; @@ -42,8 +42,8 @@ static inline unsigned long __xchg(unsigned long x, volatile void *ptr,   * Atomically swap the contents of a register with memory.  Should be atomic   * between multiple CPU's and within interrupts on the same CPU.   */ -#define arch_xchg(ptr, v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v), (ptr), \ -	sizeof(*(ptr)))) +#define arch_xchg(ptr, v) ((__typeof__(*(ptr)))__arch_xchg((unsigned long)(v), (ptr), \ +							   sizeof(*(ptr))))  /*   *  see rt-mutex-design.txt; cmpxchg supposedly checks if *ptr == A and swaps. diff --git a/arch/hexagon/kernel/smp.c b/arch/hexagon/kernel/smp.c index 4ba93e59370c..4e8bee25b8c6 100644 --- a/arch/hexagon/kernel/smp.c +++ b/arch/hexagon/kernel/smp.c @@ -217,7 +217,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)  	}  } -void smp_send_reschedule(int cpu) +void arch_smp_send_reschedule(int cpu)  {  	send_ipi(cpumask_of(cpu), IPI_RESCHEDULE);  } | 
