[Cbe-oss-dev] [PATCH 07/11 v4]MARS: Remove api argument params structs

Kazunori Asayama asayama at sm.sony.co.jp
Thu Sep 18 14:56:24 EST 2008


Yuji Mano wrote:
> This removes the mars_params and mars_task_params structure previously passed
> into the mars context and mars task APIs.
> 
> Parameter arguments are now passed in directly.
> 
> Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

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

> 
> ---
> v4:
>  - remove num_mpus_max() function and just call spe_cpu_info_get once for each
>    call to mars_initialize
> v3:
>  - revert v2 change and keep num_mpus_max() function but cache the result of
>    spe_cpu_info_get (so we can use the cached spe count later if needed)
> v2:
>  - replace num_mpus_max() with mpu_check() that avoids calling spe_cpu_info_get
>    multiple times
> 
>  include/host/mars/mars_context.h |   23 +++----------------
>  include/host/mars/mars_task.h    |   32 +++++++--------------------
>  src/host/lib/mars_context.c      |   46 +++++++++++++--------------------------
>  src/host/lib/mars_task.c         |   34 ++++++++++++----------------
>  4 files changed, 44 insertions(+), 91 deletions(-)
> 

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



More information about the cbe-oss-dev mailing list