OSDN Git Service

greybus: operation: add active counter
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 14 Jul 2015 13:43:25 +0000 (15:43 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 15 Jul 2015 19:39:13 +0000 (12:39 -0700)
commit3eeac7e37ce9856e53693772dfe81a79b57b5a00
tree0823f523632ace05cd73c3c04d05b6dd974196fa
parent9a586bd2bb80a268345cc8ccfa702413359ece06
greybus: operation: add active counter

Add active counter to track operations that are in use.

Note that the active count is always less than the reference count.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/operation.c
drivers/staging/greybus/operation.h