[Cbe-oss-dev] [PATCH 2/7]MARS/core: Task barrier remove duplicate code

Kazunori Asayama asayama at sm.sony.co.jp
Wed Oct 29 14:54:38 EST 2008


Yuji Mano wrote:
> This reuses the duplicate code used in both the wait and try wait routines of
> task barrier implementation by moving out into a separate static function.
> 
> This also fixes a bug in the notify routine where it would return error if the
> task does not have a context save area even for the non task switching try wait
> call.
> 
> This also fixes a bug of not checking to see if the notify limit has been
> reached.
> 
> Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

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

> 
> ---
>  core/src/mpu/lib/task_barrier.c |  120 ++++++++++++++--------------------------
>  1 file changed, 44 insertions(+), 76 deletions(-)
> 

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



More information about the cbe-oss-dev mailing list