CRIS v32: Update and improve fasttimer.c
authorJesper Nilsson <jesper.nilsson@axis.com>
Fri, 30 Nov 2007 16:46:11 +0000 (17:46 +0100)
committerJesper Nilsson <jesper.nilsson@axis.com>
Fri, 8 Feb 2008 10:06:27 +0000 (11:06 +0100)
commitec87ee20c28708bbd22f71f429d2e21c965c44e4
tree8a9fd532909f001bfc9c010ae5b5c05c16b74b2d
parente867cefbaaac23644414cfe562b4fee7dc604f2e
CRIS v32: Update and improve fasttimer.c

- Change include path to machine dependent header files.
- Remove __INLINE__, it expands to inline anyway.
- Don't initialize static variables.
- Change timers to use fasttimer_t instead of timevals.
- Change name of timeval_cmp to fasttime_cmp to highlight this.
- Register name for first timer is regi_timer0, not regi_timer.
- Whitespace and formatting changes.
- Don't return if we're blocking interrupts, goto done and restore interrupts.
- Disable interrupts while walking the fasttimer list, only restore
  while doing the callback.
- Remove #ifdef DECLARE_WAITQUEUE, this code won't be used in another OS.
- Remove CVS log.
arch/cris/arch-v32/kernel/fasttimer.c