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
This commit is contained in:
parent
eb35fdff92
commit
448f76a1c4
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue