[Cbe-oss-dev] [PATCH 02/11 v3]MARS: Workload queue block replace bit fields

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


Yuji Mano wrote:
> This replaces the bit fields usage for the workload queue block bits with
> explicit bitwise shift/mask operations for better portability.
> 
> Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

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

> 
> ---
> v3:
>  - simplify scheduler conditional logic for MARS_WORKLOAD_STATE_READY case
>  - fix compiler warning
> v2:
>  - remove explicit cast from MARS_BITS_GET macro
>  - avoid casting max_priority and max_counter to int inside scheduler
>  - remove unnecessary casting to void *
> 
>  include/common/mars/mars_workload_types.h |   46 +++++++---
>  src/host/lib/mars_workload_queue.c        |  134 ++++++++++++++++++------------
>  src/mpu/kernel/mars_kernel_scheduler.c    |   80 +++++++++--------
>  src/mpu/kernel/mars_kernel_workload.c     |   47 ++++++----
>  4 files changed, 191 insertions(+), 116 deletions(-)
> 

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



More information about the cbe-oss-dev mailing list