[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180618132643.79cbed17@mschwideX1>
Date: Mon, 18 Jun 2018 13:26:43 +0200
From: Martin Schwidefsky <schwidefsky@...ibm.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: Heiko Carstens <heiko.carstens@...ibm.com>, y2038@...ts.linaro.org,
linux-s390@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] s390: hypfs: use ktime_get_seconds() instead of
get_seconds()
On Mon, 18 Jun 2018 12:05:00 +0200
Arnd Bergmann <arnd@...db.de> wrote:
> time_t and get_seconds() are deprecated because they will overflow on
> 32-bit architectures in the future. This is not a problem on 64-bit s390,
> but we should use proper interfaces anyway.
>
> Besides moving to the time64_t based interface, the CLOCK_MONOTONIC
> based ktime_get_seconds() is preferred for kernel internal timekeeping
> because it does not behave in unexpected ways during leap second changes
> or settimeofday() calls.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
Added to my set of patches for the next merge window.
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
Powered by blists - more mailing lists