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:
Kai Vehmanen 2024-11-15 10:52:46 +02:00 committed by Liam Girdwood
parent c867348ce2
commit 85e876c7ae
1 changed files with 1 additions and 1 deletions

View File

@ -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);