aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configfrag.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configfrag.ac b/configfrag.ac
index 290a1596..f9285c9d 100644
--- a/configfrag.ac
+++ b/configfrag.ac
@@ -99,7 +99,12 @@ AC_DEFINE([MACH_MP_DEBUG], [0], [MACH_MP_DEBUG])
AC_DEFINE([MACH_PAGEMAP], [1], [MACH_PAGEMAP])
# Do pc sample histogram.
-AC_DEFINE([MACH_PCSAMPLE], [0], [MACH_PCSAMPLE])
+[if [ $mach_ncpus -gt 1 ]; then]
+ # Apparently not MP-safe yet.
+ AC_DEFINE([MACH_PCSAMPLE], [0], [MACH_PCSAMPLE])
+[else]
+ AC_DEFINE([MACH_PCSAMPLE], [1], [MACH_PCSAMPLE])
+[fi]
# Sample kernel too.
AC_ARG_ENABLE([kernsample],