- int suspend_count; /* Internal scheduling only */
-
-#if TASK_SWAPPER
- /* Task swapper data */
- unsigned short swap_state; /* swap state (e.g. IN/OUT) */
- unsigned short swap_flags; /* swap flags (e.g. MAKE_UNSWAPP) */
- unsigned int swap_stamp; /* when last swapped */
- unsigned long swap_rss; /* size (pages) when last swapped */
- int swap_ast_waiting; /* number of threads that have not */
- /* reached a clean point and halted */
- int swap_nswap; /* number of times this task swapped */
- queue_chain_t swapped_tasks; /* list of non-resident tasks */
-#endif /* TASK_SWAPPER */
-
- /* Activations in this task */
- queue_head_t thr_acts; /* list of thread_activations */
- int thr_act_count;
- int res_act_count;
- int active_act_count; /* have not terminate_self yet */
-
- processor_set_t processor_set; /* processor set for new threads */
-#if MACH_HOST
- boolean_t may_assign; /* can assigned pset be changed? */
- boolean_t assign_active; /* waiting for may_assign */
-#endif /* MACH_HOST */
+
+ /* Threads in this task */
+ queue_head_t threads;
+
+ processor_set_t pset_hint;
+ struct affinity_space *affinity_space;
+
+ int thread_count;
+ uint32_t active_thread_count;
+ int suspend_count; /* Internal scheduling only */