Module Name: src Committed By: thorpej Date: Wed Jan 1 23:15:24 UTC 2020
Modified Files: src/sys/kern: kern_todr.c Log Message: Now that we know if we're shutting down, enable locking in resettodr(). In the shutting_down case, we acquire the todr_mutex as a trylock. Under most circumstances, this lock will be uncontended. But if we happen to panic while accessing the TOD clock (via clock_settime() or whatever), then trylock will prevent us from getting stuck (and a warning will be displayed on the console). To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/kern/kern_todr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.