kernel: move k_heap definition
Move it to where the rest of the k_heap APIs are defined. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
b7e1e21b3c
commit
b95e960d10
2 changed files with 8 additions and 8 deletions
|
@ -4610,6 +4610,14 @@ static inline uint32_t k_mem_slab_num_free_get(struct k_mem_slab *slab)
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* kernel synchronized heap struct */
|
||||||
|
|
||||||
|
struct k_heap {
|
||||||
|
struct sys_heap heap;
|
||||||
|
_wait_q_t wait_q;
|
||||||
|
struct k_spinlock lock;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initialize a k_heap
|
* @brief Initialize a k_heap
|
||||||
*
|
*
|
||||||
|
|
|
@ -229,14 +229,6 @@ struct _timeout {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/* kernel synchronized heap struct */
|
|
||||||
|
|
||||||
struct k_heap {
|
|
||||||
struct sys_heap heap;
|
|
||||||
_wait_q_t wait_q;
|
|
||||||
struct k_spinlock lock;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* _ASMLANGUAGE */
|
#endif /* _ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* ZEPHYR_KERNEL_INCLUDE_KERNEL_STRUCTS_H_ */
|
#endif /* ZEPHYR_KERNEL_INCLUDE_KERNEL_STRUCTS_H_ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue