Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARC: SMP resurrect #18: clocksource related fixes for non-boot CPU
We can only have one system wide clocksource, which is backed by boot-cpu's hardware free flowing counter (TIMER1). Thus the clocksource registration for non boot CPU was simply wrong. However since the clocksource counter can't be accessed from "other" cpus, which need it for timer interpolation for a local gtod call, we nevertheless setup the "other" cpu counter - albeit w/o clocksource. Due to different starting points, these counters are certainly not synchronized, which we live with - fixing purely in software would require conveying the lag from boot-cpu to them and then makign the corresponding adjustments [see arch/x86/kernel/tsc.c]. However, any recent release of ARC700 (which will run SMP) will have a 64-bit raw cycle counter (accessed with RTSC insn) which _shd_ be precisely synchronized across CPUs Signed-off-by: Vineet Gupta <[email protected]>
- Loading branch information