]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: kill gb_operation_wait()
authorAlex Elder <elder@linaro.org>
Sat, 22 Nov 2014 01:29:19 +0000 (19:29 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Sat, 22 Nov 2014 03:39:12 +0000 (19:39 -0800)
commit2cf72a233a5d29bee380e89d325cde422a0c6bac
treea0bd0ae26e8a29fb6f3d7644fe7e755ea52ff1c3
parent7035833f081cefc3953a6a72a61767967f59a59e
greybus: kill gb_operation_wait()

When a caller wants an operation to complete synchronously, there is
generally no need for any other threads to wait for the operation's
completion.  So here's no need for gb_operation_wait() to be
available for synchronous requests.  At the moment, all operations
are done synchronously.

Knowing that, get rid of the public gb_operation_wait() function,
and open-code it in gb_operation_request_send().  The public wait
function can be re-implemented when it's really needed.

With that function gone, the only waiter for the completion of an
operation is the submitter itself, and only then if it's
synchronous.  So rather than complete_all(), we can simply use
complete() to signal the submitter.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c