Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 448f76a1 authored by Alex Ray's avatar Alex Ray
Browse files

cutils: trace: use ANDROID_SMP to switch atomics

With inline atomics, trace functions have no non-inline function calls
in the fast (tracing off) path.  To enable this, ANDROID_SMP must be
defined for the project.  Otherwise, normal (non-inline) atomics are
used.

Change-Id: Id1f75bdf7db2f5d319a389ad411f55073d78c48c
parent eb35fdff
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -21,9 +21,14 @@
#include <sys/types.h>
#include <stdint.h>
#include <unistd.h>
#include <cutils/atomic.h>
#include <cutils/compiler.h>

#ifdef ANDROID_SMP
#include <cutils/atomic-inline.h>
#else
#include <cutils/atomic.h>
#endif

__BEGIN_DECLS

/**