X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/7e41aa883dd258f888d0470250eead40a53ef1f5..3903760236c30e3b5ace7a4eefac3a269d68957c:/osfmk/kperf/kperf_kpc.h diff --git a/osfmk/kperf/kperf_kpc.h b/osfmk/kperf/kperf_kpc.h index d4dc8d814..84ec687b9 100644 --- a/osfmk/kperf/kperf_kpc.h +++ b/osfmk/kperf/kperf_kpc.h @@ -33,22 +33,7 @@ #include /* KPC_MAX_COUNTERS */ #endif -/* controls whether a context-switch handler is invoked */ -extern unsigned kperf_kpc_cswitch_set; - -void kperf_kpc_switch_context(thread_t old, thread_t new); -void kperf_kpc_cswitch_callback_update(void); - -/* for osfmk/platform/pcb.c context switches */ -static inline void -kperf_kpc_cswitch(thread_t old, thread_t new) -{ - if (!kperf_kpc_cswitch_set) { - return; - } - - kperf_kpc_switch_context(old, new); -} +void kperf_kpc_thread_ast(thread_t thread); /* KPC sample data */ struct kpcdata