X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..d9a64523371fa019c4575bb400cbbc3a50ac9903:/osfmk/mach/thread_switch.h diff --git a/osfmk/mach/thread_switch.h b/osfmk/mach/thread_switch.h index f5558946a..abce09f6e 100644 --- a/osfmk/mach/thread_switch.h +++ b/osfmk/mach/thread_switch.h @@ -71,7 +71,14 @@ #define SWITCH_OPTION_NONE 0 #define SWITCH_OPTION_DEPRESS 1 #define SWITCH_OPTION_WAIT 2 +#ifdef PRIVATE +/* Workqueue should not consider thread blocked, and option_time is in us */ +#define SWITCH_OPTION_DISPATCH_CONTENTION 3 +/* Handoff to lock owner and temporarily grant matching IO throttling policy */ +#define SWITCH_OPTION_OSLOCK_DEPRESS 4 +#define SWITCH_OPTION_OSLOCK_WAIT 5 +#endif /* PRIVATE */ -#define valid_switch_option(opt) (0 <= (opt) && (opt) <= 2) +#define valid_switch_option(opt) (0 <= (opt) && (opt) <= 5) #endif /* _MACH_THREAD_SWITCH_H_ */