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)
commit2d88ce76eb98c4ac4411dcb299cf61ca8999d2b9
tree2422e0f7dcb01fdc596c8806174c69508aad2540
parent86727443a04fdb25397041188efd2527f2b7237b
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