summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2014-08-22 08:31:30 (GMT)
committerInki Dae <inki.dae@samsung.com>2014-10-15 11:05:18 (GMT)
commit748ffa2a9fdcb67bf9f6a0375eec7d1006fce104 (patch)
tree4530786c067589360875ac1a2b1605c1def64d15
parentbd41b5c686b8ffc867a65e7460d09a71362160be (diff)
downloadlinux-3.10-748ffa2a9fdcb67bf9f6a0375eec7d1006fce104.zip
linux-3.10-748ffa2a9fdcb67bf9f6a0375eec7d1006fce104.tar.gz
linux-3.10-748ffa2a9fdcb67bf9f6a0375eec7d1006fce104.tar.bz2
local: fence: use smp_mb__before_atomic_inc
The smp_mb__before_atomic is hard to merge it because there is too many precedence patches. Thus, just use smp_mb__before_atomic_inc because it always convert to smb_mb. Change-Id: Ia31d488eaf218cc4585d9256457855e1a9d6b321 Signed-off-by: Chanho Park <chanho61.park@samsung.com>
-rw-r--r--drivers/dma-buf/fence.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma-buf/fence.c b/drivers/dma-buf/fence.c
index 4222cb2..60c09b2 100644
--- a/drivers/dma-buf/fence.c
+++ b/drivers/dma-buf/fence.c
@@ -73,7 +73,7 @@ int fence_signal_locked(struct fence *fence)
if (!ktime_to_ns(fence->timestamp)) {
fence->timestamp = ktime_get();
- smp_mb__before_atomic();
+ smp_mb__before_atomic_inc();
}
if (test_and_set_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags)) {
@@ -113,7 +113,7 @@ int fence_signal(struct fence *fence)
if (!ktime_to_ns(fence->timestamp)) {
fence->timestamp = ktime_get();
- smp_mb__before_atomic();
+ smp_mb__before_atomic_inc();
}
if (test_and_set_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags))