diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2012-10-04 20:13:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-05 14:05:01 -0400 |
commit | 92589c986b3360ce15d239fd5113a856412a0b3f (patch) | |
tree | 8d15272df2c445c6ccbb7b1cd79847cf89b8d94d /Documentation/rtc.txt | |
parent | 5fa44f86910ca9ee477cbd944c18f9349cdca30d (diff) |
rtc-proc: permit the /proc/driver/rtc device to use other devices
To get time information via /proc/driver/rtc, only the first device (rtc0)
is used. If the rtcN (eg. rtc1 or rtc2) is used for the system clock,
there is no way to get information of rtcN via /proc/driver/rtc. With
this patch, the time data can be retrieved from the system clock RTC.
If the RTC_HCTOSYS_DEVICE is not defined, then rtc0 is used by default.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/rtc.txt')
-rw-r--r-- | Documentation/rtc.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/rtc.txt b/Documentation/rtc.txt index 250160469d83..32aa4002de4a 100644 --- a/Documentation/rtc.txt +++ b/Documentation/rtc.txt | |||
@@ -119,8 +119,9 @@ three different userspace interfaces: | |||
119 | * /sys/class/rtc/rtcN ... sysfs attributes support readonly | 119 | * /sys/class/rtc/rtcN ... sysfs attributes support readonly |
120 | access to some RTC attributes. | 120 | access to some RTC attributes. |
121 | 121 | ||
122 | * /proc/driver/rtc ... the first RTC (rtc0) may expose itself | 122 | * /proc/driver/rtc ... the system clock RTC may expose itself |
123 | using a procfs interface. More information is (currently) shown | 123 | using a procfs interface. If there is no RTC for the system clock, |
124 | rtc0 is used by default. More information is (currently) shown | ||
124 | here than through sysfs. | 125 | here than through sysfs. |
125 | 126 | ||
126 | The RTC Class framework supports a wide variety of RTCs, ranging from those | 127 | The RTC Class framework supports a wide variety of RTCs, ranging from those |