--- - branch: MAIN date: Wed Jan 1 21:09:12 UTC 2020 files: - new: '1.29' old: '1.28' path: src/sys/dev/clock_subr.h pathrev: src/sys/dev/clock_subr.h@1.29 type: modified - new: '1.515' old: '1.514' path: src/sys/kern/init_main.c pathrev: src/sys/kern/init_main.c@1.515 type: modified - new: '1.44' old: '1.43' path: src/sys/kern/kern_todr.c pathrev: src/sys/kern/kern_todr.c@1.44 type: modified id: 20200101T210912Z.fafbc2bce247fcab18e35a2b40c016e1082f850c log: "First steps towards properly serializing access to the TOD clock.\n- Add a mutex around the TODR, and provide lock/unlock/lock-owned\n functions to manipulate it.\n- Rename inittodr() to todr_set_systime() and resettodr() to\n todr_save_systime() to better reflect what they do. These functions\n are intended to be called with the TODR lock held, which will allow\n for a pattern like:\n\t-> todr_lock()\n\t-> todr_save_systime()\n\t-> [do machine-dependent stuff to sleep/suspend]\n\t-> [magically awaken]\n\t-> todr_set_systime(...)\n\t-> todr_unlock()\n- Provide historically-named wrappers inittodr() and resettodr() that\n do the dance of acquiring / releasing the lock around the actual\n substance.\n\nNOTE: resettodr()'s use of the TODR lock is currently disabled (and\ntodr_save_systime() does not assert it's held) until such time as\nissues around shutdown / reboot under duress can be addressed.\n" module: src subject: 'CVS commit: src/sys' unixtime: '1577912952' user: thorpej