]> git.baikalelectronics.ru Git - kernel.git/commit
dmatest: add a 'wait' parameter
authorDan Williams <dan.j.williams@intel.com>
Thu, 7 Nov 2013 00:30:09 +0000 (16:30 -0800)
committerDan Williams <dan.j.williams@intel.com>
Thu, 14 Nov 2013 19:04:40 +0000 (11:04 -0800)
commit44683463bcb167eaf0c7f632e04a5208f4c3983f
tree2422e0f7dcb01fdc596c8806174c69508aad2540
parentffde330e1f4cc9137d6d5527b1067ebf5d580d17
dmatest: add a 'wait' parameter

Allows for scripting test runs by module load / unload.  Prevent module
load from returning until 'iterations' (finite) tests have completed, or
cause reads of the 'wait' parameter in sysfs to pause until the tests
are done.

Also killed the local waitqueue since we can just let the thread exit
naturally as long as we hold a reference.

Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Documentation/dmatest.txt
drivers/dma/dmatest.c