Baolin Wang
09adad1719
MIPS: Convert read_persistent_clock() to read_persistent_clock64()
...
Since struct timespec is not y2038 safe on 32bit machines, this patch
converts read_persistent_clock() to read_persistent_clock64() using
struct timespec64, as well as converting mktime() to mktime64().
Signed-off-by: Baolin Wang <baolin.wang@linaro.org >
Acked-by: Arnd Bergmann <arnd@arndb.de >
Cc: Ralf Baechle <ralf@linux-mips.org >
Cc: Huacai Chen <chenhc@lemote.com >
Cc: Paul Burton <paul.burton@mips.com >
Cc: linux-mips@linux-mips.org
Signed-off-by: James Hogan <jhogan@kernel.org >
2018-05-14 23:58:23 +01:00
Ralf Baechle
7034228792
MIPS: Whitespace cleanup.
...
Having received another series of whitespace patches I decided to do this
once and for all rather than dealing with this kind of patches trickling
in forever.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2013-02-01 10:00:22 +01:00
Stephen Hemminger
3e5c12409c
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 >
2011-01-13 08:03:07 -08:00
Adrian Bunk
02112dbc92
mips: use bcd2bin/bin2bcd
...
Changes mips to use the new bcd2bin/bin2bcd functions instead of the
obsolete BCD_TO_BIN/BIN_TO_BCD/BCD2BIN/BIN2BCD macros.
Signed-off-by: Adrian Bunk <bunk@kernel.org >
Cc: Ralf Baechle <ralf@linux-mips.org >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2008-10-20 08:52:41 -07:00
Ralf Baechle
384740dc49
MIPS: Move headfiles to new location below arch/mips/include
...
Signed-off-by: Ralf Baechle <ralf@linux-mips.org >
2008-10-11 16:18:52 +01:00