[PATCH v2 5/6] staging:iio:events: Use non-atomic bitops
Dan Carpenter
dan.carpenter at oracle.com
Thu Feb 2 06:20:53 UTC 2012
On Wed, Feb 01, 2012 at 07:45:55PM +0100, Lars-Peter Clausen wrote:
> 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.
>
Is the performance improvement worth it?
regards,
dan carpenter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20120202/87ce345c/attachment.asc>
More information about the devel
mailing list