From: Arnd Bergmann <arnd@arndb.de>
To: Heena Sirwani <heenasirwani@gmail.com>
Cc: opw-kernel@googlegroups.com, linux-kernel@vger.kernel.org,
john.stultz@linaro.org, tglx@linutronix.de
Subject: Re: [PATCH v8 1/2] timekeeping: Added a function to return tv_sec portion of ktime_get_ts64()
Date: Wed, 29 Oct 2014 11:47:12 +0100 [thread overview]
Message-ID: <6923588.JzQ3nF9J4j@wuerfel> (raw)
In-Reply-To: <da0b63f4bdf3478909f92becb35861197da3a905.1414578445.git.heenasirwani@gmail.com>
On Wednesday 29 October 2014 16:01:16 Heena Sirwani wrote:
> The following patch adds a function to return tv_sec portion of
> ktime_get_ts64() function in order to have a function that returns
> seconds as 64-bit integers instead of 32-bit integers to address the
> y2038 problem.
>
> Since we are interested only in the seconds portion of ktime_get_ts64()
> and require this to be as fast as possible, we take the implementation
> of ktime_get_ts64() as it is and remove everything pertaining to the
> nanoseconds portion. We only add to the seconds calculation if the
> calculation of nanoseconds is more than one billion nanoseconds. For all
> this calculation, we add a new field to the timekeeper struct,
> ktime_sec. We update this field in the function tk_update_ktime_data()
> by including the calculation of monotonic clock time in seconds and
> including the tk_xtime() implementation that gives the nanoseconds value
> of last timer click instead of using timekeeping_get_ns() which is
> expensive and we do not require such fine resolution for nanoseconds.
>
> Signed-off-by: Heena Sirwani <heenasirwani@gmail.com>
>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
next prev parent reply other threads:[~2014-10-29 10:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-29 10:30 [PATCH v8 0/2] Added ktime_get_seconds() and ktime_get_real_seconds() Heena Sirwani
2014-10-29 10:31 ` [PATCH v8 1/2] timekeeping: Added a function to return tv_sec portion of ktime_get_ts64() Heena Sirwani
2014-10-29 10:47 ` Arnd Bergmann [this message]
2014-10-29 14:18 ` [tip:timers/2038] timekeeping: Provide fast accessor to the seconds part of CLOCK_MONOTONIC tip-bot for Heena Sirwani
2014-10-29 10:31 ` [PATCH v8 2/2] timekeeping: Added a function to return tv_sec portion of ktime_get_real_ts64() Heena Sirwani
2014-10-29 14:18 ` [tip:timers/2038] timekeeping: Provide y2038 safe accessor to the seconds portion of CLOCK_REALTIME tip-bot for Heena Sirwani
2014-10-29 14:21 ` [PATCH v8 0/2] Added ktime_get_seconds() and ktime_get_real_seconds() Thomas Gleixner
2014-10-29 15:11 ` [OPW kernel] " Arnd Bergmann
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=6923588.JzQ3nF9J4j@wuerfel \
--to=arnd@arndb.de \
--cc=heenasirwani@gmail.com \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=opw-kernel@googlegroups.com \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®