diff options
| author | Alex Elder <elder@linaro.org> | 2020-09-17 12:39:20 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2020-09-18 17:47:07 -0700 |
| commit | 0305b709906e755d7fbdeccd9c2539442ebd1ead (patch) | |
| tree | d53482ce68587e3f06120e41e75e583cfc35c7fe /lib/mpi/mpi-sub-ui.c | |
| parent | ba4ee3c053659119472135231dbef8f6880ce1fb (diff) | |
net: ipa: use refcount_t for IPA clock reference count
Take advantage of the checking provided by refcount_t, rather than
using a plain atomic to represent the IPA clock reference count.
Note that we need to *set* the value to 1 in ipa_clock_get() rather
than incrementing it from 0 (because doing that is considered an
error for a refcount_t).
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions
