Richard Henderson
85d0b3a573
alpha: Reorganize rtc handling
...
Discontinue use of GENERIC_CMOS_UPDATE; rely on the RTC subsystem.
The marvel platform requires that the rtc only be touched from the
boot cpu. This had been partially implemented with hooks for
get/set_rtc_time, but read/update_persistent_clock were not handled.
Move the hooks from the machine_vec to a special rtc_class_ops struct.
We had read_persistent_clock managing the epoch against which the
rtc hw is based, but this didn't apply to get_rtc_time or set_rtc_time.
This resulted in incorrect values when hwclock(8) gets involved.
Allow the epoch to be set from the kernel command-line, overriding
the autodetection, which is doomed to fail in 2020. Further, by
implementing the rtc ioctl function, we can expose this epoch to
userland.
Elide the alarm functions that RTC_DRV_CMOS implements. This was
highly questionable on Alpha, since the interrupt is used by the
system timer.
Signed-off-by: Richard Henderson <rth@twiddle.net >
2013-11-16 16:33:16 -08:00
..
2013-07-03 16:08:00 -07:00
2012-10-06 03:05:04 +09:00
2013-07-22 09:38:25 -07:00
2013-11-16 16:33:16 -08:00
2013-11-13 12:09:31 +09:00
2013-11-13 12:09:28 +09:00
2013-11-13 12:09:28 +09:00
2013-07-03 16:07:54 -07:00
2013-07-03 16:07:59 -07:00
2013-11-13 12:09:31 +09:00
2013-07-03 16:07:49 -07:00
2013-11-13 12:09:27 +09:00
2013-04-05 09:36:53 -07:00
2013-07-03 16:07:49 -07:00
2013-07-03 16:07:54 -07:00
2013-07-03 16:07:49 -07:00
2013-07-03 16:07:55 -07:00
2013-07-03 16:07:54 -07:00
2013-11-13 12:09:28 +09:00
2013-07-03 16:07:55 -07:00
2007-05-08 11:15:18 -07:00
2013-07-16 16:06:00 +09:30
2013-11-13 12:09:28 +09:00
2013-07-03 16:07:50 -07:00
2013-02-21 17:22:29 -08:00
2013-07-03 16:07:53 -07:00
2013-07-03 16:08:00 -07:00
2013-07-03 16:07:56 -07:00
2013-07-03 16:07:59 -07:00
2013-11-13 12:09:28 +09:00
2013-11-13 12:09:30 +09:00
2013-07-03 16:07:46 -07:00
2013-07-03 16:07:56 -07:00
2013-09-11 15:58:59 -07:00
2013-09-11 15:58:59 -07:00
2013-07-03 16:07:56 -07:00
2013-09-11 15:58:58 -07:00
2013-11-13 12:09:29 +09:00
2013-04-29 18:28:36 -07:00
2013-07-03 16:07:56 -07:00
2013-07-03 16:07:56 -07:00
2013-07-03 16:07:56 -07:00
2013-11-13 12:09:29 +09:00
2013-07-03 16:07:56 -07:00
2013-07-03 16:07:57 -07:00
2013-11-15 09:32:21 +09:00
2013-09-11 15:58:59 -07:00
2013-11-13 12:09:27 +09:00
2013-07-16 16:06:00 +09:30
2013-07-03 16:07:55 -07:00
2011-08-26 17:26:35 -07:00
2013-07-03 16:07:53 -07:00
2013-09-11 15:58:59 -07:00
2013-07-03 16:07:53 -07:00
2013-07-03 16:07:47 -07:00
2013-07-03 16:07:56 -07:00
2013-07-03 16:07:57 -07:00
2013-07-16 16:06:00 +09:30
2013-11-13 12:09:29 +09:00
2013-11-13 12:09:29 +09:00
2013-11-13 12:09:27 +09:00
2013-07-03 16:07:57 -07:00
2013-07-03 16:07:57 -07:00
2013-07-03 16:07:53 -07:00
2013-07-03 16:07:57 -07:00
2013-07-10 11:10:27 -07:00
2013-09-11 15:58:56 -07:00
2013-07-03 16:07:51 -07:00
2013-09-11 15:58:54 -07:00
2013-10-09 20:04:04 -05:00
2013-11-13 12:09:27 +09:00
2013-07-03 16:07:53 -07:00
2013-09-11 15:58:59 -07:00
2013-09-11 15:58:59 -07:00
2013-09-11 15:58:57 -07:00
2013-11-13 12:09:30 +09:00
2013-09-11 15:58:55 -07:00
2013-07-03 16:07:51 -07:00
2013-11-13 12:09:29 +09:00
2013-09-11 15:58:53 -07:00
2013-07-03 16:07:57 -07:00
2013-07-16 16:06:00 +09:30
2013-07-16 16:06:00 +09:30
2013-04-29 18:28:38 -07:00
2013-11-13 12:09:31 +09:00
2013-11-13 12:09:31 +09:00
2013-07-03 16:07:55 -07:00
2013-04-09 14:13:32 -04:00
2013-07-03 16:07:58 -07:00
2013-11-13 12:09:31 +09:00
2013-07-03 16:07:55 -07:00
2013-04-29 18:28:34 -07:00
2013-07-03 16:07:55 -07:00
2013-07-03 16:07:52 -07:00
2013-07-03 16:07:58 -07:00
2013-11-13 12:09:29 +09:00
2013-05-07 18:38:26 -07:00
2013-07-03 16:07:58 -07:00
2013-07-03 16:07:58 -07:00
2013-07-03 16:07:55 -07:00
2013-07-03 16:07:58 -07:00
2013-07-03 16:07:51 -07:00
2013-04-19 13:51:25 +02:00
2013-11-13 12:09:31 +09:00
2013-04-29 18:28:38 -07:00
2013-07-03 16:07:51 -07:00
2013-11-13 12:09:30 +09:00
2013-11-13 12:09:30 +09:00
2013-11-13 12:09:30 +09:00
2013-07-03 16:07:52 -07:00
2013-07-03 16:07:58 -07:00
2013-09-11 15:58:59 -07:00
2013-11-13 12:09:30 +09:00
2013-07-03 16:07:58 -07:00
2013-07-29 13:10:58 -07:00
2013-05-18 11:57:07 +02:00
2013-04-29 18:28:31 -07:00
2013-07-03 16:07:53 -07:00
2013-06-12 16:29:45 -07:00
2013-11-13 12:09:31 +09:00
2013-07-03 16:07:58 -07:00
2013-07-31 14:41:03 -07:00
2013-09-11 15:58:59 -07:00
2013-11-13 12:09:30 +09:00
2013-11-13 12:09:28 +09:00
2013-11-13 12:09:30 +09:00
2013-07-03 16:07:59 -07:00
2013-04-29 18:28:32 -07:00
2013-07-03 16:07:48 -07:00
2013-01-15 18:16:06 -08:00