b524a31593
The mutex protecting access to the registered realtime clock should not be overloaded to protect access to the atrtc hardware, which might not even be the registered rtc. More importantly, the resettodr mutex needs to be eliminated to remove locking/sleeping restrictions on clock drivers, and that can't happen if MD code for amd64 depends on it. This change moves the protection into what's really being protected: access to the atrtc date and time registers. This change also adds protection when the clock is accessed from xentimer_settime(), which bypasses the resettodr locking. Differential Revision: https://reviews.freebsd.org/D11483 |
||
---|---|---|
.. | ||
isa_common.c | ||
isa_common.h | ||
isa_dmareg.h | ||
isa_if.m | ||
isahint.c | ||
isareg.h | ||
isavar.h | ||
pnp.c | ||
pnpparse.c | ||
pnpreg.h | ||
pnpvar.h | ||
rtc.h | ||
syscons_isa.c | ||
vga_isa.c |