nios2: fix nano_cpu_idle()

Interrupts must always be unlocked when coming out of this function
or execution will never leave _power_save() once entered.

Change-Id: Idda9d9be7cfc576a1072afec38000f63ae262a10
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-06-29 14:58:49 -07:00 committed by Inaky Perez-Gonzalez
parent e3ffa67bde
commit eab9123589

View file

@ -29,9 +29,10 @@
*/
void nano_cpu_idle(void)
{
/* Do nothing but return to the caller. This CPU does not have any
* kind of power saving instruction.
/* 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);
}
/**