greybus: loopback: add poll support to the iteration_count sysfs file
authorGreg Kroah-Hartman <gregkh@google.com>
Wed, 22 Jul 2015 18:09:23 +0000 (11:09 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 24 Jul 2015 23:14:43 +0000 (16:14 -0700)
commitc2939f41bca86d30388e6fa48e469a4e748b71e2
tree2919a71006ecc4b421b4683ac63f7ae1639bc0f7
parent701615f82f29d0cce28a397267f847de3ee93b6e
greybus: loopback: add poll support to the iteration_count sysfs file

This adds the ability to poll on "iteration_count" in sysfs and be woken
up when it changes, saving some cycles constantly hammering on the file
waiting for it to change.

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