Message ID | 558C25D9.80300@greensocs.com |
---|---|
State | New |
Headers | show |
On 25 June 2015 at 18:01, Frederic Konrad <fred.konrad@greensocs.com> wrote: > I just tested this with vexpress, seems ATOMIC is not defined by default it > uses: Wow nice catch! Somehow between revision the define was no longer propagated and ATOMIC was not defined at all. Tested with 8 cores and no more errors. As you said performance is still slower but probably due to the continuous contesting of the lock. Thanks.
diff --git a/helpers.h b/helpers.h index b5810ad..427659f 100644 --- a/helpers.h +++ b/helpers.h @@ -36,13 +36,8 @@ #define SYS_CFGCTR_WRITE 0x40000000 #define SYS_CFG_SHUTDOWN 0x00800000 -#ifdef ATOMIC #define LOCK atomic_lock #define UNLOCK atomic_unlock -#else -#define LOCK non_atomic_lock -#define UNLOCK non_atomic_unlock -#endif int online_cpus; int global_lock;