freedreno: remove always-defined #ifdef

While at it, let's include xf86atomic.h explicitly, instead of relying
on some other file accidentally including it before including this file.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
main
Eric Engestrom 2018-11-07 17:23:55 +00:00
parent 597725e951
commit b541d21a0a
1 changed files with 1 additions and 2 deletions

View File

@ -29,6 +29,7 @@
#ifndef FREEDRENO_RINGBUFFER_H_ #ifndef FREEDRENO_RINGBUFFER_H_
#define FREEDRENO_RINGBUFFER_H_ #define FREEDRENO_RINGBUFFER_H_
#include <xf86atomic.h>
#include <freedreno_drmif.h> #include <freedreno_drmif.h>
/* the ringbuffer object is not opaque so that OUT_RING() type stuff /* the ringbuffer object is not opaque so that OUT_RING() type stuff
@ -83,9 +84,7 @@ struct fd_ringbuffer {
* be inlined for performance reasons. * be inlined for performance reasons.
*/ */
union { union {
#ifdef HAS_ATOMIC_OPS
atomic_t refcnt; atomic_t refcnt;
#endif
uint64_t __pad; uint64_t __pad;
}; };
}; };