OSDN Git Service

greybus: loopback: warn user if kfifo cannot log all data
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 28 Jul 2015 17:34:39 +0000 (18:34 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 28 Jul 2015 21:58:36 +0000 (14:58 -0700)
commitcb60f4960ea03d373899c2c21b0611404025c31f
tree21a45bd2cdec7a3e419cc516642f81d7deb7fbdd
parentcbd204b48dc445a194d3892e2f46644f9074f308
greybus: loopback: warn user if kfifo cannot log all data

The depth of the kfifo used to log the latency data for user-space can be
moved upwards or downward by way of a module parameter. The user may still
specify a test set that's larger than the number of kfifo elements we have
available. If the user specifies more iterations than can be logged give a
warning as feedback and continue with the test.

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