altos: Provide ao_task_alarm_tick to reduce per-tick cost
authorKeith Packard <keithp@keithp.com>
Thu, 25 Oct 2012 20:42:10 +0000 (13:42 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 26 Oct 2012 21:07:04 +0000 (14:07 -0700)
commite57ab2a7bfb69c0ef9b5b7fa8e53e20a500e7c6c
tree08d961311a7d2e7612d5c9aa090fd7a1dcdd53e6
parentccf0faa7d26d56deca7928b521d07be40504466a
altos: Provide ao_task_alarm_tick to reduce per-tick cost

Cache the next wakeup time and check that before jumping to the task
code.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_task.c
src/core/ao_task.h
src/stm/ao_timer.c