Skip to content

Commit

Permalink
ethernet: ti: cpts: use ktime_get_real_ns helper
Browse files Browse the repository at this point in the history
Update on more short variant for getting real clock in ns.

Signed-off-by: Ivan Khoronzhuk <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ikhorn authored and davem330 committed Nov 8, 2019
1 parent a9ae168 commit 693bd8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ti/cpts.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ int cpts_register(struct cpts *cpts)
cpts_write32(cpts, CPTS_EN, control);
cpts_write32(cpts, TS_PEND_EN, int_enable);

timecounter_init(&cpts->tc, &cpts->cc, ktime_to_ns(ktime_get_real()));
timecounter_init(&cpts->tc, &cpts->cc, ktime_get_real_ns());

cpts->clock = ptp_clock_register(&cpts->info, cpts->dev);
if (IS_ERR(cpts->clock)) {
Expand Down

0 comments on commit 693bd8b

Please sign in to comment.