kernel: Move some macros
K_NUM_PRIORITIES and K_NUM_PRIO_BITMAPS were defined in nano_internal.h, but used in only a handful of places. Move to kernel_structs.h (somewhat higher up in the hierarchy) to help with include file cycle-breaking. Arguably they are a better fit there anyway. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
32a444c54e
commit
8ac9c082e6
2 changed files with 6 additions and 5 deletions
|
@ -15,11 +15,7 @@
|
|||
#define _NANO_INTERNAL__H_
|
||||
|
||||
#include <kernel.h>
|
||||
|
||||
#define K_NUM_PRIORITIES \
|
||||
(CONFIG_NUM_COOP_PRIORITIES + CONFIG_NUM_PREEMPT_PRIORITIES + 1)
|
||||
|
||||
#define K_NUM_PRIO_BITMAPS ((K_NUM_PRIORITIES + 31) >> 5)
|
||||
#include <kernel_structs.h>
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
|
||||
|
|
|
@ -15,6 +15,11 @@
|
|||
#include <string.h>
|
||||
#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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue