kernel: add 'static' keyword to select routines
Applies the 'static' keyword to the following inlined routines: z_priq_dumb_add() z_priq_mq_add() z_priq_mq_remove() As those routines are only used in one place, they no longer have externally visible declarations. Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
This commit is contained in:
parent
c6d7a6648e
commit
f8b76f3b03
2 changed files with 11 additions and 6 deletions
|
@ -33,7 +33,6 @@ struct k_thread;
|
|||
|
||||
struct k_thread *z_priq_dumb_best(sys_dlist_t *pq);
|
||||
void z_priq_dumb_remove(sys_dlist_t *pq, struct k_thread *thread);
|
||||
void z_priq_dumb_add(sys_dlist_t *pq, struct k_thread *thread);
|
||||
|
||||
struct _priq_rb {
|
||||
struct rbtree tree;
|
||||
|
@ -56,8 +55,6 @@ struct _priq_mq {
|
|||
unsigned int bitmask; /* bit 1<<i set if queues[i] is non-empty */
|
||||
};
|
||||
|
||||
void z_priq_mq_add(struct _priq_mq *pq, struct k_thread *thread);
|
||||
void z_priq_mq_remove(struct _priq_mq *pq, struct k_thread *thread);
|
||||
struct k_thread *z_priq_mq_best(struct _priq_mq *pq);
|
||||
|
||||
#endif /* ZEPHYR_INCLUDE_SCHED_PRIQ_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue