MIPS: define local_xchg from xchg_local to atomic_long_xchg
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 <6450bd59f6a4396d6c98d1ea08e75894ab0b4cda@gmail.com>
To: 562397917b9a8bf316569a848858b12fb417723f@linux-mips.org
Cc: 645ca7d3a8d3d4f60557176cd361ea8351edc32b@chello.nl
Cc: 19a0ba370c443ba08d20b5061586430ab449ee8c@samba.org
Cc: 9dbbbf0688fedc85ad4da37637f1a64b8c718ee2@elte.hu
Cc: 293abb6b76d7791c0732cc517d38c4b5c734b87f@redhat.com
Cc: f33139e9ff8e43a3b958b7d51460544e7a9d4f55@picochip.com
Cc: 0662de36cfb0706ed279bff52abef14720945acc@caviumnetworks.com
Cc: 1fa2ef4755a9226cb9a0a4840bd89b158ac71391@console-pimps.org
Patchwork: https://patchwork.linux-mips.org/patch/1687/
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas