greybus: op_cycle doesn't need to be atomic
authorAlex Elder <elder@linaro.org>
Wed, 12 Nov 2014 21:17:54 +0000 (15:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 21:11:35 +0000 (13:11 -0800)
commit360a8779d96c7c592ee79d035afe9bdf05695204
tree7afb98af9e9f7f6d8e385e1b901548a7f80f4184
parentb8616da875ea2f36bdeaff49f1373ea1e37406f4
greybus: op_cycle doesn't need to be atomic

We can update a connection's operation id counter under spinlock,
and thereby avoid the need to maintain it in an atomic variable.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/connection.c
drivers/staging/greybus/connection.h
drivers/staging/greybus/operation.c