[systemd-devel] Support machines with multiple RTCs?

Martin Langhoff martin.langhoff at gmail.com
Tue Nov 22 14:42:47 PST 2011


On Tue, Nov 22, 2011 at 3:21 PM, Kay Sievers <kay.sievers at vrfy.org> wrote:
> Yeah, that's intentional. Udev on other platforms can't know which rtc
> should be the preferred one.

Well, now you can: if it says hctosys == 1, it means that the kernel
config told it to pick that one, and that it's sync'd the system time
to it.

> This link is mainly for backwards compat, because in earlier days it
> was a real kernel device.

Well, the symlink has a very practical use! If you have several RTCs,
you can use udev to symlink rtc to it, and it gets htclock to DTRT.

On our XO-1.75, the "real" rtc is rtc1.

Next, we got to get src/utils.c to prefer "rtc" if it finds it ;-)




m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff


More information about the systemd-devel mailing list