From 31d45d0d8ee1d8eee96fc2a283a388b6b6aca669 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 24 Sep 2023 10:34:49 +0000 Subject: cpu_number: Inline widely used simple function TESTED: on uniprocessor and smp, both behaved as normal. Message-Id: <20230924103428.455966-2-damien@zamaudio.com> --- kern/thread.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kern/thread.h') 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 #include #include -#include #include #include #include @@ -235,6 +234,8 @@ struct thread { #endif }; +#include + /* typedef of thread_t is in kern/kern_types.h */ typedef struct thread_shuttle *thread_shuttle_t; #define THREAD_NULL ((thread_t) 0) -- cgit v1.2.3