ARM sched_clock selection enhancements
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 3 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 3 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 0/3] ARM sched_clock selection enhancements
Quoted 9 lines · Russell King - ARM Linux
Quoted 7 lines · Rob Herring
In preparation to move more timer initialization to use
CLKSRC_OFand out of the platforms, a way to select the timer used forsched_clockis needed. This series makes the ARMsched_clocksupport code prefer 64-bit counters or higher frequency counters. This is sufficient at least on ARM Ltd boards to use the 24MHz counter rather than sp804 and to always use the 64-bit architected timer when present. This mechanism can be extended to DT properties if needed for any non-discoverable h/w feature.
Quoted 4 lines
No - this stuff is designed specifically to cope with the dilemas of less-than-64-bit
sched_clocksources. If you have 64-bit sources, then that should be dealt with differently - this code will break with 64-bit sources due to the multiplication and shift losing the high order bits.
It is dealt with differently. In the 64-bit case, there is only a multiply and all the code to deal with wrapping of 32-bit counters is skipped. It is exactly the same conversion as arm64.
Rob