Page MenuHomeFreeBSD

LinuxKPI: add ktime_get_real_ts64()
AcceptedPublic

Authored by bz on Tue, May 23, 11:20 PM.
Tags
None
Referenced Files
F62321128: D40246.id122686.diff
Mon, Jun 5, 3:30 AM
F62320590: D40246.id122686.diff
Mon, Jun 5, 3:16 AM
Unknown Object (File)
Sat, May 27, 4:32 PM
Subscribers

Details

Reviewers
emaste
Group Reviewers
linuxkpi
Summary

Add a wrapper for ktime_get_real_ts64() used by a wireless driver.

MFC after: 10 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 51820
Build 48711: arc lint + arc unit

Event Timeline

bz requested review of this revision.Tue, May 23, 11:20 PM

I'm not sure if this one needs to be the non-get version, could be getnanotime?

I'm not sure if this one needs to be the non-get version, could be getnanotime?

Neither am I. We do use nanotime() for ktime_get_real and ktime_get_real_seconds and then convert it.
My understanding was that our "get*" version was faster and less precise so I figured I'll follow the other "real" cases already in the file?

AFAICT "real" refers to it being time of day, rather than not-cached.

Switch to get-version as pointed out by @emaste.

This revision is now accepted and ready to land.Thu, Jun 1, 1:29 AM