diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-01-12 19:59:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 11:03:07 -0500 |
commit | 3e5c12409c54c30f1d1b16bba5d4d24e35aa283c (patch) | |
tree | 1582983eda70a025eabe6c459a5ee8d1d94a5e16 /arch/alpha/kernel/time.c | |
parent | 04c6862c055fb687c90d9652f32c11a063df15cf (diff) |
set_rtc_mmss: show warning message only once
Occasionally the system gets into a state where the CMOS clock has gotten
slightly ahead of current time and the periodic update of RTC fails. The
message is a nuisance and repeats spamming the log.
See: http://www.ntp.org/ntpfaq/NTP-s-trbl-spec.htm#Q-LINUX-SET-RTC-MMSS
Rather than just removing the message, make it show only once and reduce
severity since it indicates a normal and non urgent condition.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/alpha/kernel/time.c')
-rw-r--r-- | arch/alpha/kernel/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/kernel/time.c b/arch/alpha/kernel/time.c index 0f1d8493cfca..c1f3e7cb82a4 100644 --- a/arch/alpha/kernel/time.c +++ b/arch/alpha/kernel/time.c | |||
@@ -506,7 +506,7 @@ set_rtc_mmss(unsigned long nowtime) | |||
506 | CMOS_WRITE(real_seconds,RTC_SECONDS); | 506 | CMOS_WRITE(real_seconds,RTC_SECONDS); |
507 | CMOS_WRITE(real_minutes,RTC_MINUTES); | 507 | CMOS_WRITE(real_minutes,RTC_MINUTES); |
508 | } else { | 508 | } else { |
509 | printk(KERN_WARNING | 509 | printk_once(KERN_NOTICE |
510 | "set_rtc_mmss: can't update from %d to %d\n", | 510 | "set_rtc_mmss: can't update from %d to %d\n", |
511 | cmos_minutes, real_minutes); | 511 | cmos_minutes, real_minutes); |
512 | retval = -1; | 512 | retval = -1; |