This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit b383da5e4742443f5b1d9350ec630949cd7f1e22 Author: buxiasen <[email protected]> AuthorDate: Sun Sep 21 21:37:55 2025 +0800 sched/percpu: remove irq.h in percpu.h to avoid loop depend. add percpu.h in sched.h to make all place access percpu macro percpu.h no longer includes irq.h, which avoids a circular include between irq.h, sched.h and percpu.h. Signed-off-by: buxiasen <[email protected]> --- include/nuttx/percpu.h | 1 - include/nuttx/sched.h | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nuttx/percpu.h b/include/nuttx/percpu.h index 9b626e21b7b..1647dd84268 100644 --- a/include/nuttx/percpu.h +++ b/include/nuttx/percpu.h @@ -28,7 +28,6 @@ ****************************************************************************/ #include <nuttx/config.h> -#include <nuttx/irq.h> /**************************************************************************** * Pre-processor Definitions diff --git a/include/nuttx/sched.h b/include/nuttx/sched.h index e55b618cdc1..301c911d387 100644 --- a/include/nuttx/sched.h +++ b/include/nuttx/sched.h @@ -40,8 +40,9 @@ #include <time.h> #include <nuttx/addrenv.h> -#include <nuttx/clock.h> #include <nuttx/irq.h> +#include <nuttx/percpu.h> +#include <nuttx/clock.h> #include <nuttx/mutex.h> #include <nuttx/semaphore.h> #include <nuttx/event.h>
