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:
Andrew Boie 2020-09-28 13:26:38 -07:00 committed by Anas Nashif
commit b95e960d10
2 changed files with 8 additions and 8 deletions

View file

@ -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
*

View file

@ -229,14 +229,6 @@ struct _timeout {
#endif
};
/* kernel synchronized heap struct */
struct k_heap {
struct sys_heap heap;
_wait_q_t wait_q;
struct k_spinlock lock;
};
#endif /* _ASMLANGUAGE */
#endif /* ZEPHYR_KERNEL_INCLUDE_KERNEL_STRUCTS_H_ */