Ignore:
Timestamp:
2007-01-28T13:25:49Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e8c1a5
Parents:
1ba41c5
Message:

huge type system cleanup
remove cyclical type dependencies across multiple header files
many minor coding style fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/time/timeout.h

    r1ba41c5 rb3f8fb7  
    3737
    3838#include <arch/types.h>
    39 #include <cpu.h>
    40 #include <synch/spinlock.h>
    41 #include <adt/list.h>
     39#include <proc/task.h>
    4240
    43 #define us2ticks(us)    ((uint64_t)(((uint32_t) (us)/(1000000/HZ))))
    44 
    45 typedef void (* timeout_handler_t)(void *arg);
    46 
    47 typedef struct {
    48         SPINLOCK_DECLARE(lock);
    49 
    50         link_t link;                    /**< Link to the list of active timeouts on THE->cpu */
    51        
    52         uint64_t ticks;                 /**< Timeout will be activated in this amount of clock() ticks. */
    53 
    54         timeout_handler_t handler;      /**< Function that will be called on timeout activation. */
    55         void *arg;                      /**< Argument to be passed to handler() function. */
    56        
    57         cpu_t *cpu;                     /**< On which processor is this timeout registered. */
    58 } timeout_t;
     41#define us2ticks(us)    ((uint64_t) (((uint32_t) (us) / (1000000 / HZ))))
    5942
    6043extern void timeout_init(void);
Note: See TracChangeset for help on using the changeset viewer.