diff mbox

[ODP/PATCH] linux-generic: ticketlock: remove odp_sync_stores for octeon

Message ID 1463501549-12191-1-git-send-email-rizwan.ansari@linaro.org
State Accepted
Commit 1b1da0fe917cb916232fd9aad615b68941b8f490
Headers show

Commit Message

Rizwan Ansari May 17, 2016, 4:12 p.m. UTC
Removes odp_sync_stores() call for OCTEON, Octeon
build will fail, As this api has been already
replaced by odp_mb_full().

Signed-off-by: Rizwan Ansari <rizwan.ansari@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
---
 platform/linux-generic/odp_ticketlock.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Maxim Uvarov June 28, 2016, 1:13 p.m. UTC | #1
Bala, please review Octeon specific change.

Maxim.

On 05/17/16 19:12, Rizwan Ansari wrote:
> Removes odp_sync_stores() call for OCTEON, Octeon
> build will fail, As this api has been already
> replaced by odp_mb_full().
>
> Signed-off-by: Rizwan Ansari <rizwan.ansari@linaro.org>
> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
> ---
>   platform/linux-generic/odp_ticketlock.c | 3 ---
>   1 file changed, 3 deletions(-)
>
> diff --git a/platform/linux-generic/odp_ticketlock.c b/platform/linux-generic/odp_ticketlock.c
> index 7b4246f..353af9a 100644
> --- a/platform/linux-generic/odp_ticketlock.c
> +++ b/platform/linux-generic/odp_ticketlock.c
> @@ -69,9 +69,6 @@ void odp_ticketlock_unlock(odp_ticketlock_t *ticketlock)
>   
>   	odp_atomic_store_rel_u32(&ticketlock->cur_ticket, cur + 1);
>   
> -#if defined __OCTEON__
> -	odp_sync_stores(); /* SYNCW to flush write buffer */
> -#endif
>   }
>   
>   int odp_ticketlock_is_locked(odp_ticketlock_t *ticketlock)
Balasubramanian Manoharan June 30, 2016, 12:42 p.m. UTC | #2
Reviewed-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>

Regards,
Bala


On 17 May 2016 at 21:42, Rizwan Ansari <rizwan.ansari@linaro.org> wrote:
> Removes odp_sync_stores() call for OCTEON, Octeon
> build will fail, As this api has been already
> replaced by odp_mb_full().
>
> Signed-off-by: Rizwan Ansari <rizwan.ansari@linaro.org>
> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
> ---
>  platform/linux-generic/odp_ticketlock.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/platform/linux-generic/odp_ticketlock.c b/platform/linux-generic/odp_ticketlock.c
> index 7b4246f..353af9a 100644
> --- a/platform/linux-generic/odp_ticketlock.c
> +++ b/platform/linux-generic/odp_ticketlock.c
> @@ -69,9 +69,6 @@ void odp_ticketlock_unlock(odp_ticketlock_t *ticketlock)
>
>         odp_atomic_store_rel_u32(&ticketlock->cur_ticket, cur + 1);
>
> -#if defined __OCTEON__
> -       odp_sync_stores(); /* SYNCW to flush write buffer */
> -#endif
>  }
>
>  int odp_ticketlock_is_locked(odp_ticketlock_t *ticketlock)
> --
> 2.5.5
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
Maxim Uvarov June 30, 2016, 1:11 p.m. UTC | #3
Merged,
Maxim.

On 06/30/16 15:42, Bala Manoharan wrote:
> Reviewed-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
>
> Regards,
> Bala
>
>
> On 17 May 2016 at 21:42, Rizwan Ansari <rizwan.ansari@linaro.org> wrote:
>> Removes odp_sync_stores() call for OCTEON, Octeon
>> build will fail, As this api has been already
>> replaced by odp_mb_full().
>>
>> Signed-off-by: Rizwan Ansari <rizwan.ansari@linaro.org>
>> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
>> ---
>>   platform/linux-generic/odp_ticketlock.c | 3 ---
>>   1 file changed, 3 deletions(-)
>>
>> diff --git a/platform/linux-generic/odp_ticketlock.c b/platform/linux-generic/odp_ticketlock.c
>> index 7b4246f..353af9a 100644
>> --- a/platform/linux-generic/odp_ticketlock.c
>> +++ b/platform/linux-generic/odp_ticketlock.c
>> @@ -69,9 +69,6 @@ void odp_ticketlock_unlock(odp_ticketlock_t *ticketlock)
>>
>>          odp_atomic_store_rel_u32(&ticketlock->cur_ticket, cur + 1);
>>
>> -#if defined __OCTEON__
>> -       odp_sync_stores(); /* SYNCW to flush write buffer */
>> -#endif
>>   }
>>
>>   int odp_ticketlock_is_locked(odp_ticketlock_t *ticketlock)
>> --
>> 2.5.5
>>
>> _______________________________________________
>> lng-odp mailing list
>> lng-odp@lists.linaro.org
>> https://lists.linaro.org/mailman/listinfo/lng-odp
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
diff mbox

Patch

diff --git a/platform/linux-generic/odp_ticketlock.c b/platform/linux-generic/odp_ticketlock.c
index 7b4246f..353af9a 100644
--- a/platform/linux-generic/odp_ticketlock.c
+++ b/platform/linux-generic/odp_ticketlock.c
@@ -69,9 +69,6 @@  void odp_ticketlock_unlock(odp_ticketlock_t *ticketlock)
 
 	odp_atomic_store_rel_u32(&ticketlock->cur_ticket, cur + 1);
 
-#if defined __OCTEON__
-	odp_sync_stores(); /* SYNCW to flush write buffer */
-#endif
 }
 
 int odp_ticketlock_is_locked(odp_ticketlock_t *ticketlock)