Skip to content

Commit 85e876c

Browse files
kv2019ilgirdwood
authored andcommitted
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>
1 parent c867348 commit 85e876c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zephyr/lib/cpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ void cpu_disable_core(int id)
235235

236236
/* Waiting for secondary core to enter idle state */
237237
while (arch_cpu_active(id) && (k_cycle_get_64() < timeout))
238-
idelay(PLATFORM_DEFAULT_DELAY);
238+
k_busy_wait(1);
239239

240240
if (arch_cpu_active(id)) {
241241
tr_err(&zephyr_tr, "core %d did not enter idle state", id);

0 commit comments

Comments
 (0)