thorpej a1e56ffa5f First steps towards properly serializing access to the TOD clock.
- Add a mutex around the TODR, and provide lock/unlock/lock-owned
  functions to manipulate it.
- Rename inittodr() to todr_set_systime() and resettodr() to
  todr_save_systime() to better reflect what they do.  These functions
  are intended to be called with the TODR lock held, which will allow
  for a pattern like:
	-> todr_lock()
	-> todr_save_systime()
	-> [do machine-dependent stuff to sleep/suspend]
	-> [magically awaken]
	-> todr_set_systime(...)
	-> todr_unlock()
- Provide historically-named wrappers inittodr() and resettodr() that
  do the dance of acquiring / releasing the lock around the actual
  substance.

NOTE: resettodr()'s use of the TODR lock is currently disabled (and
todr_save_systime() does not assert it's held) until such time as
issues around shutdown / reboot under duress can be addressed.
2020-01-01 21:09:11 +00:00
..
2019-12-27 09:41:48 +00:00
2019-12-27 09:45:26 +00:00
2019-12-27 09:47:55 +00:00
2019-12-31 10:30:30 +00:00
2019-12-27 09:41:48 +00:00
2019-12-23 06:45:36 +00:00
2019-12-26 04:53:11 +00:00
2019-12-27 05:59:53 +00:00
2020-01-01 18:09:44 +00:00
2020-01-01 19:24:03 +00:00
2019-12-27 09:50:27 +00:00
2019-12-28 03:07:18 +00:00
2019-12-13 08:30:26 +00:00
2019-12-26 04:53:11 +00:00
2019-12-10 18:06:50 +00:00
2019-11-30 23:06:52 +00:00
2019-12-27 08:01:58 +00:00
2019-12-27 09:45:26 +00:00
2019-12-27 09:41:48 +00:00
2020-01-01 12:17:13 +00:00
2019-11-27 07:26:08 +00:00
2019-12-31 13:07:09 +00:00
2019-12-08 12:15:24 +00:00
2019-12-08 12:15:24 +00:00
2019-12-23 06:45:36 +00:00
2019-12-27 09:41:48 +00:00
2019-12-27 09:41:48 +00:00