mirror of
https://github.com/zephyrproject-rtos/zephyr.git
synced 2024-12-04 10:18:24 +08:00
4f77c2ad53
Promote the private z_arch_* namespace, which specifies the interface between the core kernel and the architecture code, to a new top-level namespace named arch_*. This allows our documentation generation to create online documentation for this set of interfaces, and this set of interfaces is worth treating in a more formal way anyway. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
25 lines
527 B
C
25 lines
527 B
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <kernel.h>
|
|
#include <kernel_structs.h>
|
|
|
|
void arch_cpu_idle(void)
|
|
{
|
|
/* Do nothing but unconditionally unlock interrupts and return to the
|
|
* caller. This CPU does not have any kind of power saving instruction.
|
|
*/
|
|
irq_unlock(NIOS2_STATUS_PIE_MSK);
|
|
}
|
|
|
|
void arch_cpu_atomic_idle(unsigned int key)
|
|
{
|
|
/* Do nothing but restore IRQ state. This CPU does not have any
|
|
* kind of power saving instruction.
|
|
*/
|
|
irq_unlock(key);
|
|
}
|