]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Sibyte provides a 64-bit read-only counter that counts at half the processor
authorNeel Natu <neel@FreeBSD.org>
Sat, 20 Mar 2010 05:49:06 +0000 (05:49 +0000)
committerNeel Natu <neel@FreeBSD.org>
Sat, 20 Mar 2010 05:49:06 +0000 (05:49 +0000)
commit69a5a0bfea65db1e1faccb50e13262563a5b6048
treecacc3b5710d157a71c058bde1ec018801c05c21d
parent293f20dffbd7f846a18c4c54b3b76d778d076efc
Sibyte provides a 64-bit read-only counter that counts at half the processor
frequency. This counter can be accessed coherently from both cores.

Use this as the preferred timecounter for the SWARM kernels.

The CP0 COUNT register is unusable as the timecounter on SMP platforms because
the COUNT registers on different CPUs are not guaranteed to be in sync.
sys/mips/include/clock.h
sys/mips/mips/tick.c
sys/mips/sibyte/sb_machdep.c
sys/mips/sibyte/sb_scd.c
sys/mips/sibyte/sb_scd.h