diff options
author | Jie Hai <haijie1@huawei.com> | 2022-08-30 14:22:48 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-09-04 22:42:35 +0530 |
commit | 4aa69cf7ed44590e8702eb970ff6951e33dcdabf (patch) | |
tree | ae9117741288d5d707b1fb07bf0f513d2ce52272 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2cbb95883c990d0002a77e13d3278913ab26ad79 (diff) |
dmaengine: hisilicon: Use macros instead of magic number
readl_relaxed_poll_timeout() uses magic numbers 10 and 1000, which
indicate maximum time to sleep between reads in us and timeout in us,
respectively.
Use macros HISI_DMA_POLL_Q_STS_DELAY_US and
HISI_DMA_POLL_Q_STS_TIME_OUT_US instead of these two numbers.
Signed-off-by: Jie Hai <haijie1@huawei.com>
Acked-by: Zhou Wang <wangzhou1@hisilicon.com>
Link: https://lore.kernel.org/r/20220830062251.52993-5-haijie1@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions