]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: introduce ipa_qtime_val()
authorAlex Elder <elder@linaro.org>
Thu, 22 Sep 2022 22:20:54 +0000 (17:20 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Sep 2022 03:56:27 +0000 (20:56 -0700)
commitd883e4f50277e6a9dccb0ffaefb3470e19099736
treeaac39f39681047d39cce144a98b78ca40ca0e9e4
parente22abc4860075cfe394454525f3caf315c84588f
net: ipa: introduce ipa_qtime_val()

Create a new function ipa_qtime_val() which returns a value that
indicates what should be encoded for a register with a time field
expressed using Qtime.  Use it to factor out common code in
aggr_time_limit_encoded() and hol_block_timer_qtime_val().

Rename aggr_time_limit_encoded() and hol_block_timer_qtime_val() so
their names are both verbs ending in "encode".  Rename the "limit"
argument to the former to be "milliseconds" for consistency.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_endpoint.c