Jayachandran C. 29550c285c Fix wakeup latency when sleeping with 'wait'
If we handle an interrupt just before the 'wait' and the interrupt
schedules some work, we need to skip the 'wait' call. The simple solution
of calling sched_runnable() with interrupts disabled immediately before
wait still leaves a window after the call and before 'wait' in which
the same issue can occur.

The solution implemented is to check the EPC in the interrupt handler, and
if it is in a region before the 'wait' call, to fix up the EPC to skip the
wait call.

Reported/analysed by:	adrian
Fix suggested by:	kib

Reviewed by:	jmallett, imp
2011-10-18 16:37:28 +00:00
..
2011-10-18 07:29:21 +00:00
2011-10-04 23:53:47 +00:00
2011-10-18 08:09:44 +00:00
2011-10-16 14:30:28 +00:00
2011-10-04 13:24:22 +00:00
2011-10-18 08:09:44 +00:00