net/ice/base: use macro instead of open-coded division
authorQi Zhang <qi.z.zhang@intel.com>
Thu, 16 Sep 2021 09:52:55 +0000 (17:52 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 21 Sep 2021 12:33:26 +0000 (14:33 +0200)
commitcb9c171a24104eb2b651ed765453a7e12e5763ee
tree45aa21f8c64b74d91e0d5e28ffb8c4086183a013
parent8d90c55c459b156dc60ff4049b3a293fcc4a36ba
net/ice/base: use macro instead of open-coded division

For some operating systems, 64-bit division requires using specific
implementations. Use the DIV_64BIT macro to replace open-coded division
so that the driver may convert this to the appropriate operating-system
specific implementation when necessary.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Junfeng Guo <junfeng.guo@intel.com>
drivers/net/ice/base/ice_ptp_hw.c