]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARC: 64bit RTSC timestamp hardware issue
authorVineet Gupta <vgupta@synopsys.com>
Wed, 6 Feb 2013 09:39:13 +0000 (15:09 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 15 Feb 2013 17:46:20 +0000 (23:16 +0530)
commit1e266629933bb3e40ac7db128f3b661f5bab56c1
tree9167653a32f9402e5941e5afc24e3eb3019425c5
parentd626f547dd0457ab36f6151673fcc78fc3c63eaa
ARC: 64bit RTSC timestamp hardware issue

The 64bit RTSC is not reliable, causing spurious "jumps" in higher word,
making Linux timekeeping go bonkers. So as of now just use the lower
32bit timestamp.

A cleaner approach would have been removing RTSC support altogether as the
32bit RTSC is equivalent to old TIMER1 based solution, but some customers
can use the 32bit RTSC in SMP syn fashion (vs. TIMER1 which being incore
can't be done easily).

A fallout of this is sched_clock()'s hardware assisted version needs to
go away since it can't use 32bit wrapping counter - instead we use the
generic "weak" jiffies based version.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/time.c