set_rtc_mmss: show warning message only once
authorStephen Hemminger <[email protected]>
Thu, 13 Jan 2011 00:59:31 +0000 (16:59 -0800)
committerLinus Torvalds <[email protected]>
Thu, 13 Jan 2011 16:03:07 +0000 (08:03 -0800)
commit3e5c12409c54c30f1d1b16bba5d4d24e35aa283c
tree1582983eda70a025eabe6c459a5ee8d1d94a5e16
parent04c6862c055fb687c90d9652f32c11a063df15cf
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 <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Cc: Matt Turner <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: David Howells <[email protected]>
Cc: Paul Mundt <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/alpha/kernel/time.c
arch/cris/kernel/time.c
arch/mips/dec/time.c
arch/mips/include/asm/mc146818-time.h
arch/mn10300/kernel/rtc.c
arch/sh/boards/mach-sh03/rtc.c
arch/x86/kernel/rtc.c