add 'struct timer_list' timer code similar to linux + OpenBSC
authorHarald Welte <laforge@gnumonks.org>
Sun, 7 Mar 2010 00:29:47 +0000 (01:29 +0100)
committerHarald Welte <laforge@gnumonks.org>
Sun, 7 Mar 2010 00:29:47 +0000 (01:29 +0100)
commitf216bb3024f1b557d73af459c999f53feb483baf
tree12930f6696a7db5051bf1ee1b26d8f8c51bc1048
parentba82248d3398b0034102e58c2d22b12f2b4569d0
add 'struct timer_list' timer code similar to linux + OpenBSC

We now support arbitrary timers by means of 'struct timer_list'.
Any part of the program can register such a callback by means
of schedule_timer() on a millisecond-granularity.  However, there
is no guarantee on the timer precision.  It will not execute before
the timer expires - but it might expire quite a bit later than we
have asked it for, depending on how busy the cpu is with other work.

The timer code is in the 'comm/' directory, as it is intended to be
migrated into libosmocore soon.

Furthermore, as we currently don't yet have a scheduler or tasks,
the main() routine explicitly has to call update_timers() to check
for any expired timers and run them.
src/target/firmware/apps/compal_dsp_dump/main.c
src/target/firmware/apps/compal_dump/main.c
src/target/firmware/apps/hello_world/main.c
src/target/firmware/apps/l1test/main.c
src/target/firmware/apps/layer1/main.c
src/target/firmware/board/compal_e88/init.c
src/target/firmware/comm/Makefile
src/target/firmware/comm/timer.c [new file with mode: 0644]
src/target/firmware/include/comm/timer.h [new file with mode: 0644]