Skip to content

Commit

Permalink
zephyr: use k_cpu_idle instead of arch_cpu_idle
Browse files Browse the repository at this point in the history
arch_cpu_idle() is an internal API that should not be used
outside of the main Zephyr. Use k_cpu_idle() instead, which
is the same thing (at least for now).

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
  • Loading branch information
dcpleung authored and arnopo committed Nov 20, 2023
1 parent 85fb139 commit f3f365d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/system/zephyr/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
#include <metal/io.h>
#include <metal/sys.h>

#include <zephyr/sys/arch_interface.h>
#include <zephyr/kernel.h>

/**
* @brief poll function until some event happens
*/
void metal_weak metal_generic_default_poll(void)
{
arch_cpu_idle();
k_cpu_idle();
}

0 comments on commit f3f365d

Please sign in to comment.