Re: CONFIG_RTC_HCTOSYS lost on x86 with ALWAYS_USE_PERSISTENT_CLOCKchanges?

From: John Stultz
Date: Wed Apr 24 2013 - 12:34:07 EST


On 04/23/2013 08:51 PM, Kay Sievers wrote:
On Wed, Apr 24, 2013 at 5:33 AM, Kay Sievers <kay@xxxxxxxx> wrote:

Also:
$ cat /sys/class/rtc/rtc0/hctosys
0
always carried "1", and this now breaks setups which expect an
automatically created symlink /dev/rtc to the actual "system rtc".
We used to do this in upstream standard udev rules:
SUBSYSTEM=="rtc", ATTR{hctosys}=="1", MODE="0644"
http://cgit.freedesktop.org/systemd/systemd/tree/rules/50-udev-default.rules#n18

If that information is expected to be gone now, we need to update some
tools. Whats' the proper way now to find the "system rtc" to use?

No we'll revert. Can't break userland.

But as to your question, if there's only one rtc, I'd consider it the "system rtc", only adjusting the link if a second RTC appears and has the hctosys flag set.

thanks
-john



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/