]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
greybus: loopback: masked out threads should sleep
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 23 Sep 2015 16:31:32 +0000 (09:31 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 23 Sep 2015 19:46:16 +0000 (12:46 -0700)
commit42d7f7e884fcce78301ca88da3434f0fcbf3fee5
tree11bacc4b8754c2015c85b2977762f242e18fbd34
parentf01f7a9851f9c75467373ba7797394dba91825da
greybus: loopback: masked out threads should sleep

If a thread is masked out it should not consume CPU cycles during a test.
We set an arbitrary 100 millisecond sleep time for each masked out thread.
Reasonably blunt instrument to ensure threads with nothing to do don't end
up thrashing the acquisition/release of mutexes.

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