Page MenuHomeFreeBSD

LinuxKPI: add ktime_get_real_ts64()
ClosedPublic

Authored by bz on May 23 2023, 11:20 PM.
Tags
None
Referenced Files
F132070589: D40246.id122686.diff
Mon, Oct 13, 9:54 AM
F132070585: D40246.id122975.diff
Mon, Oct 13, 9:54 AM
F132070583: D40246.id122341.diff
Mon, Oct 13, 9:54 AM
F132070575: D40246.id.diff
Mon, Oct 13, 9:54 AM
Unknown Object (File)
Sun, Oct 12, 9:25 PM
Unknown Object (File)
Mon, Sep 29, 7:20 PM
Unknown Object (File)
Mon, Sep 29, 4:23 AM
Unknown Object (File)
Sun, Sep 28, 6:23 PM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.May 23 2023, 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.Jun 1 2023, 1:29 AM
This revision was automatically updated to reflect the committed changes.