]> Git Repo - linux.git/commit
rtc: add boot_timesource sysfs attribute
authorMatthew Garrett <[email protected]>
Tue, 22 Sep 2009 23:46:32 +0000 (16:46 -0700)
committerLinus Torvalds <[email protected]>
Wed, 23 Sep 2009 14:39:46 +0000 (07:39 -0700)
commitd8c1acb1664d17dd995e34507533321e986d9215
tree5c8c8a60bc0da9f16a748c6ef8c3cb98f33d21be
parentea3d1606fd32059461309099e8856c6652888a79
rtc: add boot_timesource sysfs attribute

CONFIG_RTC_HCTOSYS allows the kernel to read the system time from the RTC
at boot and resume, avoiding the need for userspace to do so.
Unfortunately userspace currently has no way to know whether this
configuration option is enabled and thus cannot sensibly choose whether to
run hwclock itself or not.  Add a hctosys sysfs attribute which indicates
whether a given RTC set the system clock.

Signed-off-by: Matthew Garrett <[email protected]>
Acked-by: Alessandro Zummo <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/rtc.txt
drivers/rtc/rtc-sysfs.c
This page took 0.058178 seconds and 4 git commands to generate.