diff options
author | David Brownell <david-b@pacbell.net> | 2007-11-14 16:58:29 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-14 18:45:36 -0800 |
commit | 779d20892f8e716677194dc879eea2b5f1e75678 (patch) | |
tree | a520bb7e98dd09c312d8a9f94ef1058a15543ffe /drivers/rtc/hctosys.c | |
parent | 1299342bacbe9038bef473d9b5b3cbebad112d4c (diff) | |
download | op-kernel-dev-779d20892f8e716677194dc879eea2b5f1e75678.zip op-kernel-dev-779d20892f8e716677194dc879eea2b5f1e75678.tar.gz |
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. That's
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 <dbrownell@users.sourceforge.net>
Acked-by: 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 'drivers/rtc/hctosys.c')
-rw-r--r-- | drivers/rtc/hctosys.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) do_settimeofday(&tv); dev_info(rtc->dev.parent, - "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); |