nios2: implement nano_cpu_idle and nano_cpu_atomic_idle

Nios II does not have a power saving instruction, so there is nothing
to really do here other than ensure that interrupts are in the correct
state when leaving nano_cpu_atomic_idle().

Change-Id: I664c7542dc2fc1795a453d35e183a737dcb20c38
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-06-07 10:26:57 -07:00 committed by Anas Nashif
commit 45cff183a2

View file

@ -29,7 +29,9 @@
*/
void nano_cpu_idle(void)
{
/* STUB */
/* Do nothing but return to the caller. This CPU does not have any
* kind of power saving instruction.
*/
}
/**
@ -55,6 +57,9 @@ void nano_cpu_idle(void)
*/
void nano_cpu_atomic_idle(unsigned int key)
{
/* STUB */
/* Do nothing but restore IRQ state. This CPU does not have any
* kind of power saving instruction.
*/
irq_unlock(key);
}