OSDN Git Service

x86/rtc: Stop using deprecated functions
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Fri, 9 Mar 2018 18:42:50 +0000 (10:42 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 15 Mar 2018 08:47:24 +0000 (09:47 +0100)
commit13cc36d76bc4f5a9801ae32630bc8240ba0cc522
tree4ae5091a84fb82656fca18a680f54345fccf175b
parent16d1cb0bc43642a4d934631a73c5210ad2499e2f
x86/rtc: Stop using deprecated functions

rtc_time_to_tm() and rtc_tm_to_time() are deprecated because they
rely on 32bits variables and that will make rtc break in y2038/2016.

Use the proper y2038 safe functions.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Stephen Boyd <stephen.boyd@linaro.org>
Cc: Miroslav Lichvar <mlichvar@redhat.com>
Cc: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Link: https://lkml.kernel.org/r/1520620971-9567-5-git-send-email-john.stultz@linaro.org
arch/x86/kernel/rtc.c