summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlmudena Garcia <liberamenso10000@gmail.com>2019-10-27 23:14:15 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-10-27 23:14:15 +0100
commit75267dd103637d38fa95ecdee0eedb16ba0f662c (patch)
tree8727ccca1c9287459e55c938cb1824cf5d7b40d7 /include
parentd6bdc8ca5b08c4c155dc7c53a148937ba451351e (diff)
patch: add last_processor to thread info structures
* include/mach/thread_info.h (thread info structures): Add new member "last_processor" in thread_sched_info. * kern/thread.c (thread management): Fill new member "last_processor" in thread_info() function.
Diffstat (limited to 'include')
-rw-r--r--include/mach/thread_info.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mach/thread_info.h b/include/mach/thread_info.h
index 60e8ba7f..569c8c84 100644
--- a/include/mach/thread_info.h
+++ b/include/mach/thread_info.h
@@ -107,6 +107,7 @@ struct thread_sched_info {
integer_t cur_priority; /* current priority */
/*boolean_t*/integer_t depressed; /* depressed ? */
integer_t depress_priority; /* priority depressed from */
+ integer_t last_processor; /* last processor used by the thread */
};
typedef struct thread_sched_info thread_sched_info_data_t;