[Cbe-oss-dev] [PATCH 6/10 V2] MARS: workload queue schedule initialize wait id

Yuji Mano Yuji.Mano at am.sony.com
Thu Aug 7 04:35:59 EST 2008


Use defined macro to initialize workload wait state.
Previously this was not being initialized explicitly.

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

---
Changes since V1:
 - fixed mistake in patch header

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

--- a/src/host/lib/mars_workload_queue.c
+++ b/src/host/lib/mars_workload_queue.c
@@ -180,6 +180,7 @@ int workload_queue_schedule(struct mars_
 	queue->block[block].priority[index] = priority;
 	queue->block[block].counter[index] = 0;
 	queue->block[block].signal[index] = 0;
+	queue->block[block].wait[index] = MARS_WORKLOAD_ID_NONE;
 
 	return MARS_SUCCESS;
 }




More information about the cbe-oss-dev mailing list