Page MenuHomeFreeBSD

Use callout_reset_sbt() instead of callout_reset() only if FreeBSD version is at least 1100048.
ClosedPublic

Authored by slm on Apr 25 2016, 10:48 PM.
Tags
None
Referenced Files
F157039742: D6101.id15746.diff
Mon, May 18, 2:13 AM
F157039741: D6101.id16069.diff
Mon, May 18, 2:13 AM
F157039734: D6101.id15604.diff
Mon, May 18, 2:13 AM
F157038833: D6101.diff
Mon, May 18, 2:09 AM
F157028708: D6101.id.diff
Mon, May 18, 12:58 AM
F156969387: D6101.id15604.diff
Sun, May 17, 5:16 PM
F156969353: D6101.id15604.diff
Sun, May 17, 5:16 PM
Unknown Object (File)
Sun, May 17, 5:52 AM
Subscribers

Details

Summary

Use callout_reset_sbt() instead of callout_reset() only if FreeBSD version is at least 1100048.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

slm retitled this revision from to Use callout_reset_sbt() instead of callout_reset() only if FreeBSD version is at least 1100048..
slm updated this object.
slm edited the test plan for this revision. (Show Details)
slm added reviewers: ken, scottl, ambrisko, asomers, mav, allanjude.
slm set the repository for this revision to rS FreeBSD src repository - subversion.

It looks like callout_reset_sbt was added in r247777 and __FreeBSD_version was updated to 1000029 in r247821. What's the significance of 1100048?

Hmmm. That's interesting. I'm not sure why I used 1100048. I made this change so that the driver would compile under 9.x as well as 10.x. I must have done some experiments and found that 1100048 was the magic number, but I'm not sure. I'll have to do some tests to see if I can use 1000029 instead. That is, I can do that if you think it's important. It's working with this change as is. Would you like me to try to figure out a version that makes more sense?

You should probably just use 1000029 as the version that introduced callout_reset_sbt(). I think that should work on 9, 10, and head. Since it happened before head was branched off to make stable/10, it's an accurate number for 10 and head. And the version in 9 will be less than that.

asomers requested changes to this revision.Apr 28 2016, 9:55 PM
asomers edited edge metadata.

Use 1000029 as the version that introduced callout_reset_sbt()

This revision now requires changes to proceed.Apr 28 2016, 9:55 PM
slm edited edge metadata.
slm removed rS FreeBSD src repository - subversion as the repository for this revision.

Use FreeBSD version 1000029 instead of 1100048.

asomers edited edge metadata.
This revision is now accepted and ready to land.May 2 2016, 2:56 PM
This revision was automatically updated to reflect the committed changes.