mirror of https://github.com/thesofproject/sof.git
zephyr: lib/cpu: use k_busy_wait instead of idelay
Prepare to remove idelay() use from generic code, so it can be removed from the SOF rtos abstraction layer. This is Zephyr specific code, so k_busy_wait() can be used directly. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
This commit is contained in:
parent
c867348ce2
commit
85e876c7ae
|
@ -235,7 +235,7 @@ void cpu_disable_core(int id)
|
|||
|
||||
/* Waiting for secondary core to enter idle state */
|
||||
while (arch_cpu_active(id) && (k_cycle_get_64() < timeout))
|
||||
idelay(PLATFORM_DEFAULT_DELAY);
|
||||
k_busy_wait(1);
|
||||
|
||||
if (arch_cpu_active(id)) {
|
||||
tr_err(&zephyr_tr, "core %d did not enter idle state", id);
|
||||
|
|
Loading…
Reference in New Issue