aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2003-02-03 17:53:15 +0000
committerJake Burkholder <jake@FreeBSD.org>2003-02-03 17:53:15 +0000
commit238dd3209a205ba106527c7bc3cc617874f23b10 (patch)
tree4ac2b707510b8d738855f9fa4a6576e6ded49a77 /sys/powerpc
parentca26842e2af2aee467420feb874f83627c5c7027 (diff)
downloadsrc-238dd3209a205ba106527c7bc3cc617874f23b10.tar.gz
src-238dd3209a205ba106527c7bc3cc617874f23b10.zip
Split statclock into statclock and profclock, and made the method for driving
statclock based on profhz when profiling is enabled MD, since most platforms don't use this anyway. This removes the need for statclock_process, whose only purpose was to subdivide profhz, and gets the profiling clock running outside of sched_lock on platforms that implement suswintr. Also changed the interface for starting and stopping the profiling clock to do just that, instead of changing the rate of statclock, since they can now be separate. Reviewed by: jhb, tmm Tested on: i386, sparc64
Notes
Notes: svn path=/head/; revision=110296
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/aim/clock.c7
-rw-r--r--sys/powerpc/powerpc/clock.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/powerpc/aim/clock.c b/sys/powerpc/aim/clock.c
index d1f13e2d687e..a28d3766c43a 100644
--- a/sys/powerpc/aim/clock.c
+++ b/sys/powerpc/aim/clock.c
@@ -319,8 +319,13 @@ delay(int n)
* Nothing to do.
*/
void
-setstatclockrate(int arg)
+cpu_startprofclock(void)
{
/* Do nothing */
}
+
+void
+cpu_stopprofclock(void)
+{
+}
diff --git a/sys/powerpc/powerpc/clock.c b/sys/powerpc/powerpc/clock.c
index d1f13e2d687e..a28d3766c43a 100644
--- a/sys/powerpc/powerpc/clock.c
+++ b/sys/powerpc/powerpc/clock.c
@@ -319,8 +319,13 @@ delay(int n)
* Nothing to do.
*/
void
-setstatclockrate(int arg)
+cpu_startprofclock(void)
{
/* Do nothing */
}
+
+void
+cpu_stopprofclock(void)
+{
+}