All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: time: Remove the read_persistent_clock()
@ 2018-04-19  6:06 Baolin Wang
  2018-04-20 15:19 ` Arnd Bergmann
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Baolin Wang @ 2018-04-19  6:06 UTC (permalink / raw)
  To: linux-sh

The read_persistent_clock() uses a timespec, which is not year 2038 safe
on 32bit systems. Moreover on sh platform, we have RTC drivers that can
be used to compensate the system suspend time. Thus we can remove the
read_persistent_clock() safely.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
---
 arch/sh/kernel/time.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/sh/kernel/time.c b/arch/sh/kernel/time.c
index fcd5e41..326004c 100644
--- a/arch/sh/kernel/time.c
+++ b/arch/sh/kernel/time.c
@@ -37,11 +37,6 @@ static int null_rtc_set_time(const time_t secs)
 void (*rtc_sh_get_time)(struct timespec *) = null_rtc_get_time;
 int (*rtc_sh_set_time)(const time_t) = null_rtc_set_time;
 
-void read_persistent_clock(struct timespec *ts)
-{
-	rtc_sh_get_time(ts);
-}
-
 #ifdef CONFIG_GENERIC_CMOS_UPDATE
 int update_persistent_clock(struct timespec now)
 {
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-04-20 15:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19  6:06 [PATCH] sh: time: Remove the read_persistent_clock() Baolin Wang
2018-04-20 15:19 ` Arnd Bergmann
2018-04-20 15:32 ` Rich Felker
2018-04-20 15:43 ` Arnd Bergmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.