block: row: Update initial values of ROW data structures

This patch sets the initial values of internal ROW
parameters.

Change-Id: I38132062a7fcbe2e58b9cc757e55caac64d013dc
Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
[smuckle@codeaurora.org: ported from msm-3.7]
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
This commit is contained in:
Tatyana Brokhman 2013-01-24 16:17:27 +02:00 committed by Jay Chokshi
parent 8a7a8f1d89
commit 522778fb34
1 changed files with 1 additions and 3 deletions

View File

@ -649,6 +649,7 @@ static void *row_init_queue(struct request_queue *q)
if (!rdata)
return NULL;
memset(rdata, 0, sizeof(*rdata));
for (i = 0; i < ROWQ_MAX_PRIO; i++) {
INIT_LIST_HEAD(&rdata->row_queues[i].fifo);
rdata->row_queues[i].disp_quantum = row_queues_def[i].quantum;
@ -675,9 +676,6 @@ static void *row_init_queue(struct request_queue *q)
rdata->rd_idle_data.idling_queue_idx = ROWQ_MAX_PRIO;
rdata->dispatch_queue = q;
rdata->nr_urgent_in_flight = 0;
rdata->nr_reqs[READ] = rdata->nr_reqs[WRITE] = 0;
return rdata;
}