]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:events: Use non-atmoic bitops
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 3 Jan 2012 13:59:42 +0000 (14:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 18:05:07 +0000 (10:05 -0800)
commit0f8f73d6b44bdca76af54f35c9d5da5c44727311
tree6048f2c0a2a31e56d1677231ab9b0711e19d4c7b
parent3c58d09a56cb45d72272b0f00263fdbb53dcd8cb
staging:iio:events: Use non-atmoic bitops

We always hold the waitqueue lock when modifying the flags field. So it is safe
to use the non-atomic bitops here instead of the atomic versions.

The lock has to be held, because we need to clear the busy flag and flush the
event FIFO in one atomic operation when closing the event file descriptor.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/industrialio-event.c