]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/kpc_common.c
xnu-4570.51.1.tar.gz
[apple/xnu.git] / osfmk / kern / kpc_common.c
index 21fbbbf349e61a8ab17ce6f669dd1b6e1a197959..96455de011ff9d3db890189646656b109851d5ec 100644 (file)
@@ -45,8 +45,6 @@
 #include <kperf/context.h>
 #include <kperf/action.h>
 
-#include <chud/chud_xnu.h>
-
 uint32_t kpc_actionid[KPC_MAX_COUNTERS];
 
 #define COUNTERBUF_SIZE_PER_CPU (KPC_MAX_COUNTERS * sizeof(uint64_t))
@@ -152,9 +150,9 @@ kpc_task_set_forced_all_ctrs(task_t task, boolean_t state)
 
        task_lock(task);
        if (state)
-               task->t_chud |= TASK_KPC_FORCED_ALL_CTRS;
+               task->t_kpc |= TASK_KPC_FORCED_ALL_CTRS;
        else
-               task->t_chud &= ~TASK_KPC_FORCED_ALL_CTRS;
+               task->t_kpc &= ~TASK_KPC_FORCED_ALL_CTRS;
        task_unlock(task);
 }
 
@@ -162,7 +160,7 @@ static boolean_t
 kpc_task_get_forced_all_ctrs(task_t task)
 {
        assert(task);
-       return task->t_chud & TASK_KPC_FORCED_ALL_CTRS ? TRUE : FALSE;
+       return task->t_kpc & TASK_KPC_FORCED_ALL_CTRS ? TRUE : FALSE;
 }
 
 int