summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-09-22 17:20:55 -0500
committerJakub Kicinski <kuba@kernel.org>2022-09-23 20:56:28 -0700
commit48395fa8e8f69267a795bab2d31b9c2f3f8fe503 (patch)
tree6517e11b0656b7819b5e11c45e713844f06c115b /net/unix/af_unix.c
parent8be440e17bdbb3ddfe3fd19216ee0d904dd24d22 (diff)
net: ipa: rearrange functions for similarity
Both aggr_time_limit_encode() and hol_block_timer_encode() figure out how to encode a millisecond time value so it can be programmed into a register. Rearranging them a bit can make their similarity more obvious, with both taking essentially the same form. To do this: - Return 0 immediately in aggr_time_limit_encode() if the microseconds value supplied is zero. - Reverse the test at top of aggr_time_limit_encode(), so we compute and return the Qtime value in the "true" block, and compute the result the old way otherwise. - Open-code (and eliminate) hol_block_timer_qtime_encode() at the top of hol_block_timer_encode() in the case we use Qtimer. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions