On Mon, 13 Aug 2007 20:51:39 +0200, Franck Bui-Huu <vagabon.xyz@xxxxxxxxx> wrote: > Well a more general question could be how is the RTC class layer > supposed to interact with the kernel ? > > Should RTC class layer implement a general service to update/read the > RTC, IOW should it implement {read,update}_persistent_clock() ? Some difficulties are: * timekeeping subsystem calls {read,update}_persistent_clock() with irq-disabled. But most RTC class routines might sleep. * RTC class can have multiple RTCs on the system. * There are already some conflicting features in RTC class --- rtc_suspend and rtc_resume try to adjust the wall clock. * IIRC Some people said "NTP sync can be done all in userland" ;-) Does anybody know if there was "general consensus" on this topic? --- Atsushi Nemoto