File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
drivers/net/ethernet/cavium/liquidio Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1539,7 +1539,7 @@ static int liquidio_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb)
1539
1539
* compute the delta in terms of coprocessor clocks.
1540
1540
*/
1541
1541
delta = (u64 )ppb << 32 ;
1542
- div64_u64 (delta , oct -> coproc_clock_rate );
1542
+ do_div (delta , oct -> coproc_clock_rate );
1543
1543
1544
1544
spin_lock_irqsave (& lio -> ptp_lock , flags );
1545
1545
comp = lio_pci_readq (oct , CN6XXX_MIO_PTP_CLOCK_COMP );
@@ -1672,7 +1672,7 @@ static void liquidio_ptp_init(struct octeon_device *oct)
1672
1672
u64 clock_comp , cfg ;
1673
1673
1674
1674
clock_comp = (u64 )NSEC_PER_SEC << 32 ;
1675
- div64_u64 (clock_comp , oct -> coproc_clock_rate );
1675
+ do_div (clock_comp , oct -> coproc_clock_rate );
1676
1676
lio_pci_writeq (oct , clock_comp , CN6XXX_MIO_PTP_CLOCK_COMP );
1677
1677
1678
1678
/* Enable */
You can’t perform that action at this time.
0 commit comments