aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/qdio_main.c
diff options
context:
space:
mode:
authorJan Glauber <jang@linux.vnet.ibm.com>2011-10-30 10:17:05 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2011-10-30 10:16:45 -0400
commita2b86019826cb97fd964fbaf101410c64cd78681 (patch)
treeda7659c2d90dcfd83d23ba3f432baa9f84aa80a2 /drivers/s390/cio/qdio_main.c
parent80376f347d70ce5fcfb98105d83624518e0911d6 (diff)
[S390] qdio: add timestamp for last queue scan time
Add a timestamp per queue and update the timestamp when the queue is scanned. Add the queue timestamps and the timestamp of the last adapter interrupt to the debugfs output. The timestamps are useful for debugging stall conditions. Signed-off-by: Jan Glauber <jang@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/qdio_main.c')
-rw-r--r--drivers/s390/cio/qdio_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/s390/cio/qdio_main.c b/drivers/s390/cio/qdio_main.c
index 7ded1b26fd25..a76d6764ce67 100644
--- a/drivers/s390/cio/qdio_main.c
+++ b/drivers/s390/cio/qdio_main.c
@@ -512,6 +512,8 @@ static int get_inbound_buffer_frontier(struct qdio_q *q)
512 int count, stop; 512 int count, stop;
513 unsigned char state = 0; 513 unsigned char state = 0;
514 514
515 q->timestamp = get_clock_fast();
516
515 /* 517 /*
516 * Don't check 128 buffers, as otherwise qdio_inbound_q_moved 518 * Don't check 128 buffers, as otherwise qdio_inbound_q_moved
517 * would return 0. 519 * would return 0.
@@ -781,6 +783,8 @@ static int get_outbound_buffer_frontier(struct qdio_q *q)
781 int count, stop; 783 int count, stop;
782 unsigned char state = 0; 784 unsigned char state = 0;
783 785
786 q->timestamp = get_clock_fast();
787
784 if (need_siga_sync(q)) 788 if (need_siga_sync(q))
785 if (((queue_type(q) != QDIO_IQDIO_QFMT) && 789 if (((queue_type(q) != QDIO_IQDIO_QFMT) &&
786 !pci_out_supported(q)) || 790 !pci_out_supported(q)) ||