zephyr/soc/sparc/leon3/idle.c
Gerard Marull-Paretas 0e69129fb3 soc: migrate includes to <zephyr/...>
In order to bring consistency in-tree, migrate all soc code to the
new prefix <zephyr/...>. Note that the conversion has been scripted,
refer to zephyrproject-rtos#45388 for more details.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-05-06 19:57:59 +02:00

27 lines
391 B
C

/*
* Copyright (c) 2019-2020 Cobham Gaisler AB
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/kernel.h>
#include <zephyr/tracing/tracing.h>
static void leon_idle(unsigned int key)
{
sys_trace_idle();
irq_unlock(key);
__asm__ volatile ("wr %g0, %asr19");
}
void arch_cpu_idle(void)
{
leon_idle(0);
}
void arch_cpu_atomic_idle(unsigned int key)
{
leon_idle(key);
}