[Cbe-oss-dev] [PATCH 17/28]MARS/base: cache workload context

Kazunori Asayama asayama at sm.sony.co.jp
Thu Feb 12 13:09:45 EST 2009


Yuji Mano wrote:
> This patch provides a new kernel syscall query that allows the workload module
> to know whether the MPU storage context state is cached.
> 
> * kernel id is reduced from uint32_t to uint16_t
> * kernel id of the kernel that is running or most recently ran the workload is
>   stored in the workload bits
> * mars_module_workload_query(MARS_QUERY_IS_CACHED) when the following conditions
>   are satisfied:
> 
>     1) workload id specified is the workload id currently being run
>     2) workload id specified is the workload the current kernel ran last time
>     3) current kernel is the last kernel to run the specified workload
> 
>     Note: Conditions (2) and (3) are different because the current kernel may
>           have ran the workload last time, but the workload may have been ran
>           by another kernel since then, OR current kernel may have been the last
>           kernel to run the workload, but may have ran another workload since
>           then.
> 
> Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

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

> ---
>  base/include/mpu/mars/module.h            |    7 ++++---
>  base/src/common/kernel_internal_types.h   |    9 +++++----
>  base/src/common/workload_internal_types.h |   20 +++++++++++---------
>  base/src/host/lib/workload_queue.c        |    2 ++
>  base/src/mpu/kernel/kernel.c              |   19 +++++++++++++++++--
>  base/src/mpu/lib/module.c                 |    2 +-
>  6 files changed, 40 insertions(+), 19 deletions(-)

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



More information about the cbe-oss-dev mailing list