From: Arnd Bergmann <arnd@arndb.de>
To: y2038@lists.linaro.org
Cc: DengChao <chao.deng@linaro.org>,
sonic.zhang@analog.com, linux-serial@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [Y2038] [PATCH V1] serial:bfin-uart:Remove 'struct timeval'
Date: Thu, 12 Nov 2015 14:49:56 +0100 [thread overview]
Message-ID: <4649363.jeEbMAWnTU@wuerfel> (raw)
In-Reply-To: <1447335947-14877-1-git-send-email-chao.deng@linaro.org>
On Thursday 12 November 2015 21:45:47 DengChao wrote:
> The bfin-uart code uses real time with struct timeval. This will
> cause problems on 32-bit architectures in 2038 when time_t
> overflows.
> Since the code just needs delta value of time, it is not
> necessary to record them in real time.
> This patch changes the code to use the monotonic time instead,
> replaces struct timeval and do_gettimeofday() with u64 and
> ktime_get_ns().
>
> Signed-off-by: DengChao <chao.deng@linaro.org>
>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
prev parent reply other threads:[~2015-11-12 13:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-12 13:45 [PATCH V1] serial:bfin-uart:Remove 'struct timeval' DengChao
2015-11-12 13:49 ` Arnd Bergmann [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4649363.jeEbMAWnTU@wuerfel \
--to=arnd@arndb.de \
--cc=chao.deng@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=sonic.zhang@analog.com \
--cc=y2038@lists.linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox