From 54a88fdbee07d09c2baebe29116e17810f21fb52 Mon Sep 17 00:00:00 2001 From: njl Date: Fri, 4 Feb 2005 05:32:56 +0000 Subject: Add an implementation of cpu_est_clockrate(9). This function estimates the current clock frequency for the given CPU id in units of Hz. --- sys/powerpc/aim/machdep.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/powerpc/aim') 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 #include +#include #include #include #include @@ -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. */ -- cgit v1.1