ethernet: ti: cpts: use ktime_get_real_ns helper
Update on more short variant for getting real clock in ns. Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a9ae168303
commit
693bd8b7ae
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user