summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-02-04 05:32:56 +0000
committernjl <njl@FreeBSD.org>2005-02-04 05:32:56 +0000
commit54a88fdbee07d09c2baebe29116e17810f21fb52 (patch)
treebaabe320c2a3cbdc6b455cf3dab23527c56878b7 /sys/powerpc/aim
parent9d006c413d7a4ffdf476cee1eb17d4ac55bf34e5 (diff)
downloadFreeBSD-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/powerpc/aim')
-rw-r--r--sys/powerpc/aim/machdep.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c
index 1748c02..c54f336 100644
--- a/sys/powerpc/aim/machdep.c
+++ b/sys/powerpc/aim/machdep.c
@@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/cpu.h>
#include <sys/kdb.h>
#include <sys/eventhandler.h>
#include <sys/imgact.h>
@@ -700,6 +701,14 @@ cpu_boot(int howto)
{
}
+/* Get current clock frequency for the given cpu id. */
+int
+cpu_est_clockrate(int cpu_id, uint64_t *rate)
+{
+
+ return (ENXIO);
+}
+
/*
* Shutdown the CPU as much as possible.
*/
OpenPOWER on IntegriCloud