Skip to content

arm: Replace arm sched_clock by clocksource based sched_clock

Rob Herring linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 16 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 16 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [patch 00/16] arm: Replace arm sched_clock by clocksource based sched_clock

Thomas,

Quoted 14 lines · Thomas Gleixner

Most of ARM sched_clocks is using the timekeeping clocksource as the sched_clock. Only versatile uses a different clock for it, but there is no real reason why it can't use the clocksource as well.

The core timekeeping code makes already sure that we don't wrap the timekeeper and we can base a sched_clock easily on that.

It uses the read function of the clocksource and keeps track of time independent of the timekeeping code as the ARM sched_clock implementation does. It also uses it's own sequence counter so sched_clock is not dependent on xtime_lock. The update sequence is just adding offsets once in a while and runs from do_timer() which also makes sure that only one core tries to update it.

Quoted 4 lines

Only lightly tested on orion. Please give it a go.

Another 650 lines gone :)

What's happening with this patch series? Just wondering if I'll need to add yet another sched_clock implementation or not.

Rob