From: Tejun Heo <tj@kernel.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Li Zefan <lizefan@huawei.com>,
cgroups@vger.kernel.org, Heena Sirwani <heenasirwani@gmail.com>,
linux-kernel@vger.kernel.org, y2038@lists.linaro.org,
tglx@linutronix.de, John Stultz <john.stultz@linaro.org>
Subject: Re: [PATCH] cpuset: Replace all instances of time_t with time64_t
Date: Wed, 25 Nov 2015 14:01:50 -0500 [thread overview]
Message-ID: <20151125190150.GA14240@htj.duckdns.org> (raw)
In-Reply-To: <2798266.9VZu01a7d1@wuerfel>
On Wed, Nov 25, 2015 at 04:16:55PM +0100, Arnd Bergmann wrote:
> The following patch replaces all instances of time_t with time64_t i.e.
> change the type used for representing time from 32-bit to 64-bit. All
> 32-bit kernels to date use a signed 32-bit time_t type, which can only
> represent time until January 2038. Since embedded systems running 32-bit
> Linux are going to survive beyond that date, we have to change all
> current uses, in a backwards compatible way.
>
> The patch also changes the function get_seconds() that returns a 32-bit
> integer to ktime_get_seconds() that returns seconds as 64-bit integer.
>
> The patch changes the type of ticks from time_t to u32. We keep ticks as
> 32-bits as the function uses 32-bit arithmetic which would prove less
> expensive than 64-bit arithmetic and the function is expected to be
> called atleast once every 32 seconds.
>
> Signed-off-by: Heena Sirwani <heenasirwani@gmail.com>
> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Applied to cgroup/for-4.5.
Thanks.
--
tejun
next prev parent reply other threads:[~2015-11-25 19:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-25 15:16 Arnd Bergmann
2015-11-25 17:35 ` Thomas Gleixner
2015-11-25 19:01 ` Tejun Heo [this message]
2015-11-26 12:08 ` Zefan Li
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=20151125190150.GA14240@htj.duckdns.org \
--to=tj@kernel.org \
--cc=arnd@arndb.de \
--cc=cgroups@vger.kernel.org \
--cc=heenasirwani@gmail.com \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=tglx@linutronix.de \
--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
Powered by JetHome