From 75267dd103637d38fa95ecdee0eedb16ba0f662c Mon Sep 17 00:00:00 2001 From: Almudena Garcia Date: Sun, 27 Oct 2019 23:14:15 +0100 Subject: 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. --- include/mach/thread_info.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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; -- cgit v1.2.3