]> git.baikalelectronics.ru Git - kernel.git/commit
set_rtc_mmss: show warning message only once
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 13 Jan 2011 00:59:31 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:07 +0000 (08:03 -0800)
commit78ad40e70274aa48b1cfbc63c2a112e0616444a9
tree1582983eda70a025eabe6c459a5ee8d1d94a5e16
parent253f682cfb9ba50993676a05db53cd5da4ea9f8d
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>
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