]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add static inline rtcin_locked() and rtcout_locked() functions for doing a
authorian <ian@FreeBSD.org>
Tue, 16 Jan 2018 03:02:41 +0000 (03:02 +0000)
committerian <ian@FreeBSD.org>
Tue, 16 Jan 2018 03:02:41 +0000 (03:02 +0000)
commit6ac58f6094fc22310976c3e46af42416001fb636
tree65a46ef5af5df8c0ee62d771ec9bb0aae948dcd5
parent3bac5f1698ee5953f313865f321c57578948efd3
Add static inline rtcin_locked() and rtcout_locked() functions for doing a
related series of operations without doing a lock/unlock for each byte.
Use them when reading and writing the entire set of time registers.

The original rtcin() and writertc() functions which do lock/unlock on each
byte still exist, because they are public and called by outside code.
sys/x86/isa/atrtc.c