diff mbox series

MIPS: sni: Remove the read_persistent_clock()

Message ID 0b52cfd4def5dd0287a1fd48c632a32e7cc3117b.1524122311.git.baolin.wang@linaro.org
State Accepted
Commit d7c72c57b144997241f6933b6548ea86ced1b844
Headers show
Series MIPS: sni: Remove the read_persistent_clock() | expand

Commit Message

(Exiting) Baolin Wang April 19, 2018, 7:21 a.m. UTC
The dummy read_persistent_clock() uses a timespec, which is not year 2038
safe on 32bit systems. Thus remove this obsolete interface.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>

---
 arch/mips/sni/time.c |    6 ------
 1 file changed, 6 deletions(-)

-- 
1.7.9.5

Comments

Arnd Bergmann April 20, 2018, 3:26 p.m. UTC | #1
On Thu, Apr 19, 2018 at 9:21 AM, Baolin Wang <baolin.wang@linaro.org> wrote:
> The dummy read_persistent_clock() uses a timespec, which is not year 2038

> safe on 32bit systems. Thus remove this obsolete interface.

>

> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>


Looks good to me. I have a larger but incomplete patch for arch/mips
handling of  read_persistent_clock(), but yours is a good start.

Acked-by: Arnd Bergmann <arnd@arndb.de>
James Hogan May 8, 2018, 10:44 p.m. UTC | #2
On Thu, Apr 19, 2018 at 03:21:06PM +0800, Baolin Wang wrote:
> The dummy read_persistent_clock() uses a timespec, which is not year 2038

> safe on 32bit systems. Thus remove this obsolete interface.

> 

> Signed-off-by: Baolin Wang <baolin.wang@linaro.org>


Thanks, Applied for 4.18

Cheers
James
diff mbox series

Patch

diff --git a/arch/mips/sni/time.c b/arch/mips/sni/time.c
index 0eb7d1e..dbace1f 100644
--- a/arch/mips/sni/time.c
+++ b/arch/mips/sni/time.c
@@ -171,9 +171,3 @@  void __init plat_time_init(void)
 	}
 	setup_pit_timer();
 }
-
-void read_persistent_clock(struct timespec *ts)
-{
-	ts->tv_sec = -1;
-	ts->tv_nsec = 0;
-}