• Jesper Nilsson's avatar
    CRISv10 improve and bugfix fasttimer · d8e5219f
    Jesper Nilsson authored
    Improve and bugfix CRIS v10 fast timers.
    
    - irq_handler_t now only takes two arguments.
    - Keep interrupts disabled as long as we have a reference to the
      fasttimer list and only enable them while doing the callback.
      del_fast_timer may be called from other interrupt context.
    - Fix bug where debug code could return without calling local_irq_restore.
    - Use jiffies instead of usec (change from struct timeval to fasttime_t).
    - Don't initialize static variables to zero.
    - Remove obsolete #ifndef DECLARE_WAITQUEUE code.
    - fast_timer_init should be __initcall.
    - Change status/debug variables to unsigned.
    - Remove CVS log and CVS id.
    Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
    Cc: Mikael Starvik <mikael.starvik@axis.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    d8e5219f
fasttimer.c 23 KB