X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/527f99514973766e9c0382a4d8550dfb00f54939..a39ff7e25e19b3a8c3020042a3872ca9ec9659f1:/osfmk/kern/kpc_common.c diff --git a/osfmk/kern/kpc_common.c b/osfmk/kern/kpc_common.c index 21fbbbf34..96455de01 100644 --- a/osfmk/kern/kpc_common.c +++ b/osfmk/kern/kpc_common.c @@ -45,8 +45,6 @@ #include #include -#include - 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