diff options
author | njl <njl@FreeBSD.org> | 2005-02-04 05:32:56 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2005-02-04 05:32:56 +0000 |
commit | 54a88fdbee07d09c2baebe29116e17810f21fb52 (patch) | |
tree | baabe320c2a3cbdc6b455cf3dab23527c56878b7 /sys/sparc64 | |
parent | 9d006c413d7a4ffdf476cee1eb17d4ac55bf34e5 (diff) | |
download | FreeBSD-src-54a88fdbee07d09c2baebe29116e17810f21fb52.zip FreeBSD-src-54a88fdbee07d09c2baebe29116e17810f21fb52.tar.gz |
Add an implementation of cpu_est_clockrate(9). This function estimates the
current clock frequency for the given CPU id in units of Hz.
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/machdep.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index b70ac9a..7fe6acd 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -44,6 +44,7 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/cons.h> +#include <sys/cpu.h> #include <sys/imgact.h> #include <sys/kdb.h> #include <sys/kernel.h> @@ -669,6 +670,14 @@ cpu_shutdown(void *args) openfirmware_exit(args); } +/* Get current clock frequency for the given cpu id. */ +int +cpu_est_clockrate(int cpu_id, uint64_t *rate) +{ + + return (ENXIO); +} + /* * Duplicate OF_exit() with a different firmware call function that restores * the trap table, otherwise a RED state exception is triggered in at least |