Commit:     779d20892f8e716677194dc879eea2b5f1e75678
Parent:     1299342bacbe9038bef473d9b5b3cbebad112d4c
Author:     David Brownell <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 14 16:58:29 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Nov 14 18:45:36 2007 -0800

    rtc_hctosys expects RTCs in UTC (doc)
    The RTC "hctosys" mechanism expects that RTC clock will use UTC, not local
    time (e.g.  PST).  Say so in Kconfig and in the kernel message.
    (Strictly speaking, the RTC clock should be tracking the POSIX epoch.  
    not worth going into here.  Goofing timezones means clocks are wrong by many
    hours; the POSIX-v-UTC differences just cost seconds.)
    Signed-off-by: David Brownell <[EMAIL PROTECTED]>
    Acked-by: Alessandro Zummo <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 drivers/rtc/Kconfig   |    4 +++-
 drivers/rtc/hctosys.c |    4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index cbde770..7958635 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -36,7 +36,9 @@ config RTC_HCTOSYS_DEVICE
          The RTC device that will be used to (re)initialize the system
          clock, usually rtc0.  Initialization is done when the system
-         starts up, and when it resumes from a low power state.
+         starts up, and when it resumes from a low power state.  This
+         device should record time in UTC, since the kernel won't do
+         timezone correction.
          The driver for this RTC device must be loaded before late_initcall
          functions run, so it must usually be statically linked.
diff --git a/drivers/rtc/hctosys.c b/drivers/rtc/hctosys.c
index 1785272..33c0e98 100644
--- a/drivers/rtc/hctosys.c
+++ b/drivers/rtc/hctosys.c
@@ -47,8 +47,8 @@ static int __init rtc_hctosys(void)
-                               "setting the system clock to "
-                               "%d-%02d-%02d %02d:%02d:%02d (%u)\n",
+                               "setting system clock to "
+                               "%d-%02d-%02d %02d:%02d:%02d UTC (%u)\n",
                                tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
                                tm.tm_hour, tm.tm_min, tm.tm_sec,
                                (unsigned int) tv.tv_sec);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to