From d775e04dd3ee9648ca91b1df965b435a34632606 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Thu, 2 Jan 2014 16:14:19 +0100 Subject: kern: reduce the size of struct task * kern/task.h (struct task): Reduce the size of struct task by 2 * sizeof boolean_t by using a bit field for the boolean flags. --- kern/task.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'kern') diff --git a/kern/task.h b/kern/task.h index 9bfea57..e852033 100644 --- a/kern/task.h +++ b/kern/task.h @@ -52,7 +52,11 @@ struct task { /* Synchronization/destruction information */ decl_simple_lock_data(,lock) /* Task's lock */ int ref_count; /* Number of references to me */ - boolean_t active; /* Task has not been terminated */ + + /* Flags */ + unsigned int active:1, /* Task has not been terminated */ + /* boolean_t */ may_assign:1, /* can assigned pset be changed? */ + assign_active:1; /* waiting for may_assign */ /* Miscellaneous */ vm_map_t map; /* Address space description */ @@ -63,8 +67,6 @@ struct task { queue_head_t thread_list; /* list of threads */ int thread_count; /* number of threads */ processor_set_t processor_set; /* processor set for new threads */ - boolean_t may_assign; /* can assigned pset be changed? */ - boolean_t assign_active; /* waiting for may_assign */ /* User-visible scheduling information */ int user_stop_count; /* outstanding stops */ -- cgit v1.2.3