[Cbe-oss-dev] [PATCH 03/23]MARS/base: initial workload counter fix
Yuji Mano
yuji.mano at am.sony.com
Sat Mar 14 12:18:11 EST 2009
From: Kazunori Asayama <asayama at sm.sony.co.jp>
Change initial workload counter value
This patch changes initial workload counter value from
MARS_WORKLOAD_COUNTER_MIN to MARS_WORKLOAD_COUNTER_MAX to avoid
scheduling the same workload again before scheduling newly added
workloads.
Signed-off-by: Kazunori Asayama <asayama at sm.sony.co.jp>
---
base/src/host/lib/workload_queue.c | 2 +-
base/src/mpu/kernel/kernel.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: b/base/src/host/lib/workload_queue.c
===================================================================
--- a/base/src/host/lib/workload_queue.c 2009-02-12 23:27:06.000000000 +0900
+++ b/base/src/host/lib/workload_queue.c 2009-02-19 18:46:27.000000000 +0900
@@ -91,7 +91,7 @@ static void init_header(uint64_t queue_e
/* create initial bit pattern of workload queue header */
MARS_BITS_SET(&bits, BLOCK_PRIORITY, MARS_WORKLOAD_BLOCK_PRIORITY_MIN);
- MARS_BITS_SET(&bits, BLOCK_COUNTER, MARS_WORKLOAD_BLOCK_COUNTER_MIN);
+ MARS_BITS_SET(&bits, BLOCK_COUNTER, MARS_WORKLOAD_BLOCK_COUNTER_MAX);
MARS_BITS_SET(&bits, BLOCK_READY, MARS_WORKLOAD_BLOCK_READY_OFF);
MARS_BITS_SET(&bits, BLOCK_WAITING, MARS_WORKLOAD_BLOCK_WAITING_OFF);
Index: b/base/src/mpu/kernel/kernel.c
===================================================================
--- a/base/src/mpu/kernel/kernel.c 2009-02-18 14:19:34.000000000 +0900
+++ b/base/src/mpu/kernel/kernel.c 2009-02-19 18:46:19.000000000 +0900
@@ -435,7 +435,7 @@ static uint64_t set_schedule_bits(uint64
/* set the info bits inside queue block for this workload */
MARS_BITS_SET(&bits, WORKLOAD_STATE, MARS_WORKLOAD_STATE_SCHEDULING);
MARS_BITS_SET(&bits, WORKLOAD_PRIORITY, priority);
- MARS_BITS_SET(&bits, WORKLOAD_COUNTER, MARS_WORKLOAD_COUNTER_MIN);
+ MARS_BITS_SET(&bits, WORKLOAD_COUNTER, MARS_WORKLOAD_COUNTER_MAX);
MARS_BITS_SET(&bits, WORKLOAD_SIGNAL, MARS_WORKLOAD_SIGNAL_OFF);
MARS_BITS_SET(&bits, WORKLOAD_WAIT_ID, MARS_WORKLOAD_ID_NONE);
More information about the cbe-oss-dev
mailing list