[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180618081211.033940279@linuxfoundation.org>
Date: Mon, 18 Jun 2018 10:12:18 +0200
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Baolin Wang <baolin.wang@...aro.org>,
Arnd Bergmann <arnd@...db.de>, Helge Deller <deller@....de>,
Sasha Levin <alexander.levin@...rosoft.com>
Subject: [PATCH 4.14 042/189] parisc: time: Convert read_persistent_clock() to read_persistent_clock64()
4.14-stable review patch. If anyone has any objections, please let me know.
------------------
From: Baolin Wang <baolin.wang@...aro.org>
[ Upstream commit f76cdd00ef0e39d880139b074e3b247594dff95a ]
The read_persistent_clock() uses a timespec, which is not year 2038 safe
on 32bit systems. On parisc architecture, we have implemented generic
RTC drivers that can be used to compensate the system suspend time, but
the RTC time can not represent the nanosecond resolution, so this patch
just converts to read_persistent_clock64() with timespec64.
Signed-off-by: Baolin Wang <baolin.wang@...aro.org>
Acked-by: Arnd Bergmann <arnd@...db.de>
Signed-off-by: Helge Deller <deller@....de>
Signed-off-by: Sasha Levin <alexander.levin@...rosoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
arch/parisc/kernel/time.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/parisc/kernel/time.c
+++ b/arch/parisc/kernel/time.c
@@ -205,7 +205,7 @@ static int __init rtc_init(void)
device_initcall(rtc_init);
#endif
-void read_persistent_clock(struct timespec *ts)
+void read_persistent_clock64(struct timespec64 *ts)
{
static struct pdc_tod tod_data;
if (pdc_tod_read(&tod_data) == 0) {
Powered by blists - more mailing lists