Skip to content

sched_clock updates

Steven Rostedt lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sched_clock: record from last tickkernel/sched_clock.c+5 -40 replies
2/3sched_clock: widen the max and min timekernel/sched_clock.c+9 -20 replies
3/3sched_clock: stop maximum check on NO HZinclude/linux/sched.h kernel/sched_clock.c kernel/time/tick-sched.c+56 -22 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] sched_clock updates

Working with ftrace on linux-tip, I found a few problems with the sched_clock code that is suppose to help an unstable TSC keep accurate time. The problem I was seeing was on a box with a stable TSC. The time would jump around a lot. One would think that code to help unstable TSC keep time would not be a problem with a stable TSC.

The main change was the patch that handled the dynamic ticks. That was the culprit of bein off by several jiffies.

With these patches applied, ftrace is quite a bit better with respect to time. But there is still jumps that happen that do not happen with sched_clock.

I'm suspecting that the problems that still exist have more to do with time updates or a drift between the TSC and the clock used for GTOD.

Anyway, enjoy,

-- Steve