arm: Replace arm sched_clock by clocksource based sched_clock
Get series with b4
b4 am [email protected]Versions newest first
- 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.
Cover letter [patch 00/16] arm: Replace arm sched_clock by clocksource based sched_clock
Quoted 3 lines · Thomas Gleixner
Most of ARM
sched_clocksis using the timekeeping clocksource as thesched_clock. Only versatile uses a different clock for it, but there is no real reason why it can't use the clocksource as well.
sched_clock really needs to be setup earlier than clocksources are setup, before sched_init() is called in init/main.c. This is where the scheduler reads the initial value of sched_clock() to start its time measurements. This is well before clocksources are initialized, or even the irq subsystem.
So I don't believe bolting it directly into the clocksource code in this way is correct. As things are currently setup with my sched_clock() implementation, we can (and in any cases do) get the sched_clock() up and running really early which is what's required.