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:
parent
9280e71ea4
commit
45cff183a2
1 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue