kernel: add arch interface for idle functions
k_cpu_idle() and k_cpu_atomic_idle() were being directly implemented by arch code. Rename these implementations to z_arch_cpu_idle() and z_arch_cpu_atomic_idle(), and call them from new inline function definitions in kernel.h. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
845aa6d114
commit
07525a3d54
20 changed files with 61 additions and 66 deletions
|
@ -67,7 +67,7 @@ z_set_thread_return_value(struct k_thread *thread, unsigned int value)
|
|||
*(unsigned int *)(thread->callee_saved.esp) = value;
|
||||
}
|
||||
|
||||
extern void k_cpu_atomic_idle(unsigned int key);
|
||||
extern void z_arch_cpu_atomic_idle(unsigned int key);
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
extern FUNC_NORETURN void z_x86_userspace_enter(k_thread_entry_t user_entry,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue