summaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2023-09-24 10:34:49 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-24 14:37:50 +0200
commit31d45d0d8ee1d8eee96fc2a283a388b6b6aca669 (patch)
treea95db566461b2cb4d5fac435b32bbc8349664fc3 /kern/thread.h
parent74a1d4600a53541f5c89d55c6d4efd3210fe992d (diff)
cpu_number: Inline widely used simple function
TESTED: on uniprocessor and smp, both behaved as normal. Message-Id: <20230924103428.455966-2-damien@zamaudio.com>
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/thread.h b/kern/thread.h
index 8547464d..bf07828a 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -42,7 +42,6 @@
#include <mach/port.h>
#include <mach/vm_prot.h>
#include <kern/ast.h>
-#include <kern/cpu_number.h>
#include <kern/mach_clock.h>
#include <kern/queue.h>
#include <kern/pc_sample.h>
@@ -235,6 +234,8 @@ struct thread {
#endif
};
+#include <kern/cpu_number.h>
+
/* typedef of thread_t is in kern/kern_types.h */
typedef struct thread_shuttle *thread_shuttle_t;
#define THREAD_NULL ((thread_t) 0)