coresight: tmc-etf: Add comment for store ordering
authorLeo Yan <leo.yan@linaro.org>
Mon, 9 Aug 2021 11:14:01 +0000 (19:14 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 27 Oct 2021 17:44:43 +0000 (11:44 -0600)
commitbd8d06886d0a9b59d020fdb2496c76db77816768
tree9ab9cd257deee2d018734e0cc29c654b387ef9f4
parent26701ceb4c2c6bfa5f8c8984fa1a1ea08fa0f02c
coresight: tmc-etf: Add comment for store ordering

Since the function CS_LOCK() has contained memory barrier mb(), it
ensures the visibility of the AUX trace data before updating the
aux_head, thus it's needless to add any explicit barrier anymore.

Add comment to make clear for the barrier usage for ETF.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Link: https://lore.kernel.org/r/20210809111407.596077-4-leo.yan@linaro.org
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/hwtracing/coresight/coresight-tmc-etf.c