[Cbe-oss-dev] [PATCH 7/10] MARS: workload priority initialize with define

Yuji Mano Yuji.Mano at am.sony.com
Wed Aug 6 04:54:31 EST 2008


Use defined macro instead of magic number when initializing workload priority.

Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>

---
 src/host/lib/mars_workload_queue.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/src/host/lib/mars_workload_queue.c
+++ b/src/host/lib/mars_workload_queue.c
@@ -109,7 +109,7 @@ int workload_queue_add(struct mars_workl
 
 	/* update workload queue header info */
 	queue->block[block].state[index] = MARS_WORKLOAD_STATE_FINISHED;
-	queue->block[block].priority[index] = 0;
+	queue->block[block].priority[index] = MARS_WORKLOAD_PRIORITY_MIN;
 	queue->block[block].counter[index] = 0;
 	queue->block[block].signal[index] = 0;
 	queue->block[block].wait[index] = MARS_WORKLOAD_ID_NONE;





More information about the cbe-oss-dev mailing list