greybus: loopback: add tracker variables to hold firmware timestamps
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Thu, 15 Oct 2015 15:10:44 +0000 (16:10 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 15 Oct 2015 18:31:08 +0000 (11:31 -0700)
This patch adds tracker variables to hold the incoming firmware derived
timestamps where apbridge_latency_ts will contain the APBridge's view of
the UniPro turn-around time and gpbridge_latency_ts will contain the
GPBridge's view of it's own internal latency. Both values are reported
in microseconds.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c

index 95cba823ff90e8db8a457ed41413fa29a5130e14..d2a88af1f290fa8793b98d7b3337ff2f7d937bc7 100644 (file)
@@ -83,6 +83,8 @@ struct gb_loopback {
        u32 iteration_count;
        u64 elapsed_nsecs;
        u32 error;
+       u32 apbridge_latency_ts;
+       u32 gpbridge_latency_ts;
 };
 
 #define GB_LOOPBACK_FIFO_DEFAULT                       8192