iris: Use READ_ONCE and WRITE_ONCE for snapshots_landed
Suggested by Chris Wilson, if only to make it obvious to the human readers that these are volatile reads. It may also be necessary for the compiler in a few cases.
This commit is contained in:
@@ -209,8 +209,6 @@ iris_init_batch(struct iris_batch *batch,
|
||||
iris_batch_reset(batch);
|
||||
}
|
||||
|
||||
#define READ_ONCE(x) (*(volatile __typeof__(x) *)&(x))
|
||||
|
||||
static struct drm_i915_gem_exec_object2 *
|
||||
find_validation_entry(struct iris_batch *batch, struct iris_bo *bo)
|
||||
{
|
||||
|
Reference in New Issue
Block a user