Re: [PATCH 2/2] MIPS: Convert update_persistent_clock() to update_persistent_clock64()

2018-05-04 Thread Baolin Wang
On 4 May 2018 at 06:31, Arnd Bergmann wrote: > On Wed, May 2, 2018 at 10:53 PM, Baolin Wang wrote: >> diff --git a/arch/mips/include/asm/time.h b/arch/mips/include/asm/time.h >> index 17d4cd2..c4e2a1a 100644 >> --- a/arch/mips/include/asm/time.h >> +++

Re: [PATCH 2/2] MIPS: Convert update_persistent_clock() to update_persistent_clock64()

2018-05-04 Thread Baolin Wang
On 4 May 2018 at 06:31, Arnd Bergmann wrote: > On Wed, May 2, 2018 at 10:53 PM, Baolin Wang wrote: >> diff --git a/arch/mips/include/asm/time.h b/arch/mips/include/asm/time.h >> index 17d4cd2..c4e2a1a 100644 >> --- a/arch/mips/include/asm/time.h >> +++ b/arch/mips/include/asm/time.h >> @@ -27,8

Re: [PATCH 2/2] MIPS: Convert update_persistent_clock() to update_persistent_clock64()

2018-05-03 Thread Arnd Bergmann
On Wed, May 2, 2018 at 10:53 PM, Baolin Wang wrote: > diff --git a/arch/mips/include/asm/time.h b/arch/mips/include/asm/time.h > index 17d4cd2..c4e2a1a 100644 > --- a/arch/mips/include/asm/time.h > +++ b/arch/mips/include/asm/time.h > @@ -27,8 +27,8 @@ > *

Re: [PATCH 2/2] MIPS: Convert update_persistent_clock() to update_persistent_clock64()

2018-05-03 Thread Arnd Bergmann
On Wed, May 2, 2018 at 10:53 PM, Baolin Wang wrote: > diff --git a/arch/mips/include/asm/time.h b/arch/mips/include/asm/time.h > index 17d4cd2..c4e2a1a 100644 > --- a/arch/mips/include/asm/time.h > +++ b/arch/mips/include/asm/time.h > @@ -27,8 +27,8 @@ > * rtc_mips_set_mmss - similar to

[PATCH 2/2] MIPS: Convert update_persistent_clock() to update_persistent_clock64()

2018-05-02 Thread Baolin Wang
Since struct timespec is not y2038 safe on 32bit machines, this patch converts update_persistent_clock() to update_persistent_clock64() using struct timespec64. This patch also changes rtc_mips_set_time()/rtc_mips_set_mmss() interfaces to use time64_t, which is y2038 safe. Signed-off-by: Baolin

[PATCH 2/2] MIPS: Convert update_persistent_clock() to update_persistent_clock64()

2018-05-02 Thread Baolin Wang
Since struct timespec is not y2038 safe on 32bit machines, this patch converts update_persistent_clock() to update_persistent_clock64() using struct timespec64. This patch also changes rtc_mips_set_time()/rtc_mips_set_mmss() interfaces to use time64_t, which is y2038 safe. Signed-off-by: Baolin