Skip to content

Commit dccbbaf

Browse files
julianwiedmannMartin Schwidefsky
authored andcommitted
s390/qdio: eliminate queue's last_move cursor
This cursor is used for debugging only. But since commit "s390/qdio: pass up count of ready-to-process SBALs" it effectively duplicates the first_to_check cursor, diverging for just a short moment when get_*_buffer_frontier() updates q->first_to_check. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Reviewed-by: Jens Remus <jremus@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 65e4f77 commit dccbbaf

3 files changed

Lines changed: 5 additions & 14 deletions

File tree

‎drivers/s390/cio/qdio.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,6 @@ struct qdio_q {
228228
*/
229229
int first_to_check;
230230

231-
/* first_to_check of the last time */
232-
int last_move;
233-
234231
/* beginning position for calling the program */
235232
int first_to_kick;
236233

‎drivers/s390/cio/qdio_debug.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,8 @@ static int qstat_show(struct seq_file *m, void *v)
121121

122122
seq_printf(m, "Timestamp: %Lx Last AI: %Lx\n",
123123
q->timestamp, last_ai_time);
124-
seq_printf(m, "nr_used: %d ftc: %d last_move: %d\n",
125-
atomic_read(&q->nr_buf_used),
126-
q->first_to_check, q->last_move);
124+
seq_printf(m, "nr_used: %d ftc: %d\n",
125+
atomic_read(&q->nr_buf_used), q->first_to_check);
127126
if (q->is_input_q) {
128127
seq_printf(m, "polling: %d ack start: %d ack count: %d\n",
129128
q->u.in.polling, q->u.in.ack_start,

‎drivers/s390/cio/qdio_main.c‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -551,11 +551,8 @@ static int qdio_inbound_q_moved(struct qdio_q *q)
551551

552552
count = get_inbound_buffer_frontier(q);
553553

554-
if (count) {
555-
q->last_move = q->first_to_check;
556-
if (!is_thinint_irq(q->irq_ptr) && MACHINE_IS_LPAR)
557-
q->u.in.timestamp = get_tod_clock();
558-
}
554+
if (count && !is_thinint_irq(q->irq_ptr) && MACHINE_IS_LPAR)
555+
q->u.in.timestamp = get_tod_clock();
559556

560557
return count;
561558
}
@@ -780,10 +777,8 @@ static inline int qdio_outbound_q_moved(struct qdio_q *q)
780777

781778
count = get_outbound_buffer_frontier(q);
782779

783-
if (count) {
784-
q->last_move = q->first_to_check;
780+
if (count)
785781
DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "out moved:%1d", q->nr);
786-
}
787782

788783
return count;
789784
}

0 commit comments

Comments
 (0)