]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: define local_xchg from xchg_local to atomic_long_xchg
authorDeng-Cheng Zhu <dengcheng.zhu@gmail.com>
Tue, 12 Oct 2010 11:37:20 +0000 (19:37 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 29 Oct 2010 18:08:47 +0000 (19:08 +0100)
commit977114fad0416045ef520b0ef0ba7cd5c9ff4a5a
tree99445160e479bdab166672d9cd120c0dc7634f0a
parent1a2090b07854445f02490a5e031b96ca5f4858c7
MIPS: define local_xchg from xchg_local to atomic_long_xchg

Perf-events is now using local_t helper functions internally. There is a
use of local_xchg(). On MIPS, this is defined to xchg_local() which is
missing in asm/system.h. This patch re-defines local_xchg() in asm/local.h
to atomic_long_xchg(). Then Perf-events can pass the build.

Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@gmail.com>
To: linux-mips@linux-mips.org
Cc: a.p.zijlstra@chello.nl
Cc: paulus@samba.org
Cc: mingo@elte.hu
Cc: acme@redhat.com
Cc: jamie.iles@picochip.com
Cc: ddaney@caviumnetworks.com
Cc: matt@console-pimps.org
Patchwork: https://patchwork.linux-mips.org/patch/1687/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/local.h