kernel: thread: move k_is_preempt_thread to thread.c
This belongs in thread.c Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
17c874f4fc
commit
6754cbd1b5
|
@ -1320,19 +1320,6 @@ static inline k_tid_t z_vrfy_k_sched_current_thread_query(void)
|
|||
#include <syscalls/k_sched_current_thread_query_mrsh.c>
|
||||
#endif /* CONFIG_USERSPACE */
|
||||
|
||||
int z_impl_k_is_preempt_thread(void)
|
||||
{
|
||||
return !arch_is_in_isr() && is_preempt(_current);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
static inline int z_vrfy_k_is_preempt_thread(void)
|
||||
{
|
||||
return z_impl_k_is_preempt_thread();
|
||||
}
|
||||
#include <syscalls/k_is_preempt_thread_mrsh.c>
|
||||
#endif /* CONFIG_USERSPACE */
|
||||
|
||||
static inline void unpend_all(_wait_q_t *wait_q)
|
||||
{
|
||||
struct k_thread *thread;
|
||||
|
|
|
@ -108,6 +108,19 @@ static inline void *z_vrfy_k_thread_custom_data_get(void)
|
|||
#endif /* CONFIG_USERSPACE */
|
||||
#endif /* CONFIG_THREAD_CUSTOM_DATA */
|
||||
|
||||
int z_impl_k_is_preempt_thread(void)
|
||||
{
|
||||
return !arch_is_in_isr() && is_preempt(_current);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
static inline int z_vrfy_k_is_preempt_thread(void)
|
||||
{
|
||||
return z_impl_k_is_preempt_thread();
|
||||
}
|
||||
#include <syscalls/k_is_preempt_thread_mrsh.c>
|
||||
#endif /* CONFIG_USERSPACE */
|
||||
|
||||
int z_impl_k_thread_name_set(struct k_thread *thread, const char *value)
|
||||
{
|
||||
#ifdef CONFIG_THREAD_NAME
|
||||
|
|
Loading…
Reference in a new issue