linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: Add support for CLOCK_MONOTONIC_RAW in clock_gettime() vDSO
@ 2016-07-12 10:23 Kevin Brodsky
  2016-07-12 10:24 ` [PATCH v2 2/2] " Kevin Brodsky
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Brodsky @ 2016-07-12 10:23 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

This small series adds support for CLOCK_MONOTONIC_RAW to
clock_gettime() (and clock_getres()) in the arm64 vDSO. This should make
calls to clock_gettime() with CLOCK_MONOTONIC_RAW just as fast as
CLOCK_MONOTONIC and suchlike, instead of falling back to the significantly
slower syscall.

Given that gettimeofday.S is already quite difficult to understand, and
directly adding MONOTONIC_RAW support makes it even more so, the first
patch refactors it to make it simpler, and save a few instructions along
the way. The second patch actually adds support for MONOTONIC_RAW, which
is made quite easy by the refactoring.

Thanks,
Kevin

Changelog v1..v2:
* As proposed by Will Deacon, align main labels to be nicer to branch
  predictors. Also replace the "store" exit point of
  __kernel_clock_gettime with a macro, making it slightly easier to read
  and removing a branch.

Kevin Brodsky (2):
  arm64: Refactor vDSO time functions
  arm64: Add support for CLOCK_MONOTONIC_RAW in clock_gettime() vDSO

 arch/arm64/include/asm/vdso_datapage.h |   8 +-
 arch/arm64/kernel/asm-offsets.c        |   6 +-
 arch/arm64/kernel/vdso.c               |   8 +-
 arch/arm64/kernel/vdso/gettimeofday.S  | 331 ++++++++++++++++++++-------------
 4 files changed, 224 insertions(+), 129 deletions(-)

-- 
2.9.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-25 19:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAE2F3rCCJG5+cjTgWmHFN7zeJNhudKWyj5owg1aQnWWhMN3oKQ@mail.gmail.com>
2017-05-25 16:29 ` [PATCH v2 2/2] arm64: Add support for CLOCK_MONOTONIC_RAW in clock_gettime() vDSO Will Deacon
2017-05-25 19:41   ` John Stultz
2016-07-12 10:23 [PATCH v2 0/2] " Kevin Brodsky
2016-07-12 10:24 ` [PATCH v2 2/2] " Kevin Brodsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).