[Cbe-oss-dev] [PATCH 1/10] MARS: task queue fix incorrect define usage

Kazunori Asayama asayama at sm.sony.co.jp
Thu Aug 28 15:27:23 EST 2008


Yuji Mano wrote:
> This fixes a copy paste bug where some task event flag defines were being used
> inside of the task queue implementation.
> 
> Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

Acked-by: Kazunori Asayama <asayama at sm.sony.co.jp>

> 
> ---
>  src/host/lib/mars_task_queue.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> --- a/src/host/lib/mars_task_queue.c
> +++ b/src/host/lib/mars_task_queue.c
> @@ -165,7 +165,7 @@ static int push(struct mars_task_queue *
>  	MARS_CHECK_RET(queue, MARS_ERROR_NULL);
>  	MARS_CHECK_RET(((uintptr_t)queue & MARS_TASK_QUEUE_ALIGN_MASK) == 0,
>  			MARS_ERROR_ALIGN);
> -	MARS_CHECK_RET(queue->direction == MARS_TASK_EVENT_FLAG_HOST_TO_MPU,
> +	MARS_CHECK_RET(queue->direction == MARS_TASK_QUEUE_HOST_TO_MPU,
>  			MARS_ERROR_STATE);
>  
>  	mars_mutex_lock((struct mars_mutex *)queue);
> @@ -238,7 +238,7 @@ static int pop(struct mars_task_queue *q
>  	MARS_CHECK_RET(queue, MARS_ERROR_NULL);
>  	MARS_CHECK_RET(((uintptr_t)queue & MARS_TASK_QUEUE_ALIGN_MASK) == 0,
>  			MARS_ERROR_ALIGN);
> -	MARS_CHECK_RET(queue->direction == MARS_TASK_EVENT_FLAG_MPU_TO_HOST,
> +	MARS_CHECK_RET(queue->direction == MARS_TASK_QUEUE_MPU_TO_HOST,
>  			MARS_ERROR_STATE);
>  
>  	mars_mutex_lock((struct mars_mutex *)queue);
> 
> 
> 

-- 
(ASAYAMA Kazunori
  (asayama at sm.sony.co.jp))
t



More information about the cbe-oss-dev mailing list