altos: Don't wait while idle if trying to minimize interrupt latency
authorKeith Packard <keithp@keithp.com>
Mon, 21 Nov 2016 04:56:01 +0000 (20:56 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 21 Nov 2016 04:56:01 +0000 (20:56 -0800)
commit83cfc271e37f568cb1d821cf6a96750f3ca3854c
tree7e2f2811c3f65d1867067494a054e1e802da2f58
parent4ab6776034aeb9837b30e581526aeda07eebc6fe
altos: Don't wait while idle if trying to minimize interrupt latency

Keeping the scanout running reasonably means keeping interrupt latency
constant, and that requires leaving the CPU running. Don't wait for
interrupts when the system is running in this mode.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_task.c