summaryrefslogtreecommitdiffstats
path: root/sys/mips/sibyte/sb_scd.h
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2010-03-20 05:49:06 +0000
committerneel <neel@FreeBSD.org>2010-03-20 05:49:06 +0000
commite17e52b7e2dffab4f1200b2f010c3ef8cb1132d7 (patch)
treecacc3b5710d157a71c058bde1ec018801c05c21d /sys/mips/sibyte/sb_scd.h
parentacca987bde60a7b3b11dabcb24b9870f71e22546 (diff)
downloadFreeBSD-src-e17e52b7e2dffab4f1200b2f010c3ef8cb1132d7.zip
FreeBSD-src-e17e52b7e2dffab4f1200b2f010c3ef8cb1132d7.tar.gz
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.
Diffstat (limited to 'sys/mips/sibyte/sb_scd.h')
-rw-r--r--sys/mips/sibyte/sb_scd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/mips/sibyte/sb_scd.h b/sys/mips/sibyte/sb_scd.h
index 03d2681..f8bb6e4 100644
--- a/sys/mips/sibyte/sb_scd.h
+++ b/sys/mips/sibyte/sb_scd.h
@@ -31,6 +31,7 @@
#define NUM_INTSRC 64 /* total number of interrupt sources */
+uint64_t sb_zbbus_cycle_count(void);
uint64_t sb_cpu_speed(void);
void sb_system_reset(void);
OpenPOWER on IntegriCloud