uclibc: arc: Disable usage of atomic ops if hardware has no LLSC
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Wed, 19 Apr 2017 17:48:57 +0000 (20:48 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 4 May 2017 20:51:58 +0000 (22:51 +0200)
commit64c67e07fa40e1af1a9dbba907a0117765b16c16
treedd3b167e14069f73ba4d62464b98dcda222553eb
parenta497a9fd6cdb518572282b1478279f476f870fb7
uclibc: arc: Disable usage of atomic ops if hardware has no LLSC

Since uClibc-ng v1.0.20 we can force libc to either use llock/scond
instructions for atomic ops or if those are missing use kernel-assisted
emulation. By default atomics are used so we disable that feature in
libc if we build for a target without LLSC.

This allows us to build and use NPTL on ARC750 for example which was not
possible before.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/uclibc/uclibc.mk