commit | 0305b709906e755d7fbdeccd9c2539442ebd1ead | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@linaro.org> | Thu Sep 17 12:39:20 2020 -0500 |
committer | David S. Miller <davem@davemloft.net> | Fri Sep 18 17:47:07 2020 -0700 |
tree | d53482ce68587e3f06120e41e75e583cfc35c7fe | |
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>