summaryrefslogtreecommitdiff
path: root/kern/pc_sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/pc_sample.c')
-rw-r--r--kern/pc_sample.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kern/pc_sample.c b/kern/pc_sample.c
index e26fd41..be28ca0 100644
--- a/kern/pc_sample.c
+++ b/kern/pc_sample.c
@@ -33,6 +33,7 @@
#include <kern/host.h>
#include <kern/thread.h>
#include <kern/pc_sample.h>
+#include <kern/mach_clock.h>
#if MACH_PCSAMPLE
@@ -66,7 +67,6 @@ thread_enable_pc_sampling(
sampled_pc_flavor_t flavors)
{
vm_offset_t buf;
- extern int tick;
if (thread == THREAD_NULL) {
return KERN_INVALID_ARGUMENT;
@@ -92,7 +92,6 @@ task_enable_pc_sampling(
sampled_pc_flavor_t flavors)
{
vm_offset_t buf;
- extern int tick;
if (task == TASK_NULL) {
return KERN_INVALID_ARGUMENT;