summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-08-04 19:51:02 +0000
committerThomas Bushnell <thomas@gnu.org>1997-08-04 19:51:02 +0000
commit3fb0a9ecbc7b3b6491de587d366efafbadf95013 (patch)
tree3957a4cc8636530ee07353d5c739506a792d0fa0
parent2a2a488ff1440e4e02f7e33349320d032358eb9a (diff)
Fri Aug 1 16:15:33 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* kern/mach_clock.c (clock_interrupt): Test correct macro to see if PC sampling is configured: MACH_PCSAMPLE, not MACH_SAMPLE. Mon Jul 21 14:20:39 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu> * kern/mach4.srv: Include <mach_pcsample.h> so the value of MACH_PCSAMPLE is made available for mach4.defs.
-rw-r--r--kern/mach4.srv2
-rw-r--r--kern/mach_clock.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/kern/mach4.srv b/kern/mach4.srv
index ead5484..9df7cea 100644
--- a/kern/mach4.srv
+++ b/kern/mach4.srv
@@ -21,6 +21,8 @@
*/
/* This is a server presentation file. */
+#include <mach_pcsample.h>
+
#define KERNEL_SERVER 1
#ifdef MIGRATING_THREADS
diff --git a/kern/mach_clock.c b/kern/mach_clock.c
index 667b211..9076ef4 100644
--- a/kern/mach_clock.c
+++ b/kern/mach_clock.c
@@ -167,7 +167,7 @@ void clock_interrupt(usec, usermode, basepri)
thread_quantum_update(my_cpu, thread, 1, state);
}
-#if MACH_SAMPLE
+#if MACH_PCSAMPLE
/*
* Take a sample of pc for the user if required.
* This had better be MP safe. It might be interesting