diff --git a/kernel/include/kernel_internal.h b/kernel/include/kernel_internal.h index 82f1b0a82b0..8dd12a655f6 100644 --- a/kernel/include/kernel_internal.h +++ b/kernel/include/kernel_internal.h @@ -15,11 +15,7 @@ #define _NANO_INTERNAL__H_ #include - -#define K_NUM_PRIORITIES \ - (CONFIG_NUM_COOP_PRIORITIES + CONFIG_NUM_PREEMPT_PRIORITIES + 1) - -#define K_NUM_PRIO_BITMAPS ((K_NUM_PRIORITIES + 31) >> 5) +#include #ifndef _ASMLANGUAGE diff --git a/kernel/include/kernel_structs.h b/kernel/include/kernel_structs.h index a135e13a2eb..86a53cb669b 100644 --- a/kernel/include/kernel_structs.h +++ b/kernel/include/kernel_structs.h @@ -15,6 +15,11 @@ #include #endif +#define K_NUM_PRIORITIES \ + (CONFIG_NUM_COOP_PRIORITIES + CONFIG_NUM_PREEMPT_PRIORITIES + 1) + +#define K_NUM_PRIO_BITMAPS ((K_NUM_PRIORITIES + 31) >> 5) + /* * Bitmask definitions for the struct k_thread.thread_state field. *