Rev 534 | Rev 788 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 534 | Rev 623 | ||
|---|---|---|---|
| Line 37... | Line 37... | ||
| 37 | #define us2ticks(us) ((__u64)(((__u32) (us)/(1000000/HZ)))) |
37 | #define us2ticks(us) ((__u64)(((__u32) (us)/(1000000/HZ)))) |
| 38 | 38 | ||
| 39 | typedef void (* timeout_handler_t)(void *arg); |
39 | typedef void (* timeout_handler_t)(void *arg); |
| 40 | 40 | ||
| 41 | struct timeout { |
41 | struct timeout { |
| 42 | spinlock_t lock; |
42 | SPINLOCK_DECLARE(lock); |
| 43 | 43 | ||
| 44 | link_t link; /**< Link to the list of active timeouts on THE->cpu */ |
44 | link_t link; /**< Link to the list of active timeouts on THE->cpu */ |
| 45 | 45 | ||
| 46 | __u64 ticks; /**< Timeout will be activated in this amount of clock() ticks. */ |
46 | __u64 ticks; /**< Timeout will be activated in this amount of clock() ticks. */ |
| 47 | 47 | ||