Page MenuHomeFreeBSD

acpi_timer: Add a softc to avoid use of global variables
ClosedPublic

Authored by jhb on Wed, Sep 23, 7:04 PM.
Tags
None
Referenced Files
F174713854: D59936.id188216.diff
Mon, Oct 5, 10:29 AM
F174669856: D59936.diff
Mon, Oct 5, 2:19 AM
Unknown Object (File)
Sun, Oct 4, 3:30 AM
Unknown Object (File)
Sat, Oct 3, 8:58 PM
Unknown Object (File)
Sat, Oct 3, 11:11 AM
Unknown Object (File)
Sat, Oct 3, 3:28 AM
Unknown Object (File)
Sat, Oct 3, 1:36 AM
Unknown Object (File)
Thu, Oct 1, 3:26 PM
Subscribers
None

Details

Summary

Add a softc and use it to mostly replace the use of global variables
in this driver. Simplify the suspend and resume event handlers by
saving the old timecounter in the softc and passing the softc pointer
to the handlers.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77218
Build 74101: arc lint + arc unit