mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-15 11:11:56 +00:00
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>
27 lines
391 B
C
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);
|
|
}
|