Skip to content

64bit friendly generic sched_clock

Stephen Boyd linux-arm-kernel linux-arm-msm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 3 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sched_clock: Add support for >32 bit sched_clockinclude/linux/sched_clock.h kernel/time/sched_clock.c+28 -142 replies
2/3ARM: arch_timer: Move to generic sched_clock frameworkarch/arm/kernel/arch_timer.c include/linux/sched_clock.h kernel/time/sched_clock.c+6 -230 replies
3/3arm64: Move to generic sched_clock infrastructurearch/arm64/Kconfig arch/arm64/kernel/time.c+3 -91 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchChristopher Covington
1/3
2/3
3/3T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCHv3 0/3] 64bit friendly generic sched_clock

Ok here's the second take at 64 bit support in generic sched_clock. This assumes that the previous three patches in the v2 of this series have been applied.

I've also noticed that we probably need to update the mult/shift calculation similar to how clocksources are done. Should we just copy/paste the maxsec calculation code here or do something else?

Stephen Boyd (3):
sched_clock: Add support for >32 bit sched_clock
ARM: arch_timer: Move to generic sched_clock framework
arm64: Move to generic sched_clock infrastructure

 arch/arm/kernel/arch_timer.c | 14 ++------------
 arch/arm64/Kconfig           |  1 +
 arch/arm64/kernel/time.c     | 11 ++---------
 include/linux/sched_clock.h  |  3 +--
 kernel/time/sched_clock.c    | 46 ++++++++++++++++++++++++++------------------
 5 files changed, 33 insertions(+), 42 deletions(-)
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation