Rev 534 | Rev 659 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 534 | Rev 552 | ||
---|---|---|---|
Line 45... | Line 45... | ||
45 | * Initialize kernel timeouts. |
45 | * Initialize kernel timeouts. |
46 | * |
46 | * |
47 | */ |
47 | */ |
48 | void timeout_init(void) |
48 | void timeout_init(void) |
49 | { |
49 | { |
50 | spinlock_initialize(&CPU->timeoutlock); |
50 | spinlock_initialize(&CPU->timeoutlock, "timeout_lock"); |
51 | list_initialize(&CPU->timeout_active_head); |
51 | list_initialize(&CPU->timeout_active_head); |
52 | } |
52 | } |
53 | 53 | ||
54 | 54 | ||
55 | /** Reinitialize timeout |
55 | /** Reinitialize timeout |
Line 76... | Line 76... | ||
76 | * @param t Timeout to be initialized. |
76 | * @param t Timeout to be initialized. |
77 | * |
77 | * |
78 | */ |
78 | */ |
79 | void timeout_initialize(timeout_t *t) |
79 | void timeout_initialize(timeout_t *t) |
80 | { |
80 | { |
81 | spinlock_initialize(&t->lock); |
81 | spinlock_initialize(&t->lock, "timeout_t_lock"); |
82 | timeout_reinitialize(t); |
82 | timeout_reinitialize(t); |
83 | } |
83 | } |
84 | 84 | ||
85 | 85 | ||
86 | /** Register timeout |
86 | /** Register timeout |