diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-07-01 12:37:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-07-01 16:45:39 -0700 |
commit | e420721b47ef5b0d521584d4efc89ff64bd0cd74 (patch) | |
tree | 7ae9e850adda27abb38b3d5e0c9400749b2c5950 /drivers/staging/greybus/operation.h | |
parent | 3e136cc9e05e1a34d8602a4d4e31c9d93ccbbdf7 (diff) | |
download | linux-e420721b47ef5b0d521584d4efc89ff64bd0cd74.tar.bz2 |
greybus: operation: allow atomic operation allocations
Add gfp mask argument to gb_operation_create to allow operations to be
allocated in atomic context.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/operation.h')
-rw-r--r-- | drivers/staging/greybus/operation.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h index ad4574b4bfdf..395664835eac 100644 --- a/drivers/staging/greybus/operation.h +++ b/drivers/staging/greybus/operation.h @@ -134,7 +134,8 @@ int gb_operation_result(struct gb_operation *operation); size_t gb_operation_get_payload_size_max(struct gb_connection *connection); struct gb_operation *gb_operation_create(struct gb_connection *connection, u8 type, size_t request_size, - size_t response_size); + size_t response_size, + gfp_t gfp); void gb_operation_get(struct gb_operation *operation); void gb_operation_put(struct gb_operation *operation); static inline void gb_operation_destroy(struct gb_operation *operation) |