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, 20 Feb 2017 19:22:21 +0000 (11:22 -0800)
commit992eee8e0b4c6c774f3355af107fb422019ff4e5
tree9c97cdf409d6d36c28e2c1cd79617867d5f81bd5
parentf0c187dd6479996b83f85b6decf303ec0fc70fe5
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