[PATCH] fence: Use smp_mb__before_atomic()

From: Thierry Reding
Date: Wed May 28 2014 - 10:29:12 EST


From: Thierry Reding <treding@xxxxxxxxxx>

Commit febdbfe8a91c (arch: Prepare for smp_mb__{before,after}_atomic())
deprecated the smp_mb__{before,after}_{atomic,clear}_{dec,inc,bit}*()
functions in favour of the unified smp_mb__{before,after}_atomic().

Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
---
drivers/base/fence.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/base/fence.c b/drivers/base/fence.c
index f780f9b3d418..74d1f7bcb467 100644
--- a/drivers/base/fence.c
+++ b/drivers/base/fence.c
@@ -65,7 +65,7 @@ int __fence_signal(struct fence *fence)

if (!ktime_to_ns(fence->timestamp)) {
fence->timestamp = ktime_get();
- smp_mb__before_clear_bit();
+ smp_mb__before_atomic();
}

if (test_and_set_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags)) {
@@ -105,7 +105,7 @@ int fence_signal(struct fence *fence)

if (!ktime_to_ns(fence->timestamp)) {
fence->timestamp = ktime_get();
- smp_mb__before_clear_bit();
+ smp_mb__before_atomic();
}

if (test_and_set_bit(FENCE_FLAG_SIGNALED_BIT, &fence->flags))
--
1.9.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/