Changeset 46c20c8 in mainline for kernel/generic/include/time/timeout.h
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/generic/include/time/timeout.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/time/timeout.h
rfb150d78 r46c20c8 36 36 #define KERN_TIMEOUT_H_ 37 37 38 #include < arch/types.h>38 #include <typedefs.h> 39 39 #include <adt/list.h> 40 40 #include <cpu.h> … … 43 43 44 44 typedef struct { 45 SPINLOCK_DECLARE(lock);46 45 IRQ_SPINLOCK_DECLARE(lock); 46 47 47 /** Link to the list of active timeouts on THE->cpu */ 48 48 link_t link; 49 /** Timeout will be activated in this amount of clock() ticks. */ 49 /** Timeout will be activated in this amount of clock() ticks. */ 50 50 uint64_t ticks; 51 51 /** Function that will be called on timeout activation. */ … … 57 57 } timeout_t; 58 58 59 #define us2ticks(us) ((uint64_t) (((uint32_t) (us) / (1000000 / HZ))))59 #define us2ticks(us) ((uint64_t) (((uint32_t) (us) / (1000000 / HZ)))) 60 60 61 61 extern void timeout_init(void); 62 extern void timeout_initialize(timeout_t *t); 63 extern void timeout_reinitialize(timeout_t *t); 64 extern void timeout_register(timeout_t *t, uint64_t usec, timeout_handler_t f, 65 void *arg); 66 extern bool timeout_unregister(timeout_t *t); 62 extern void timeout_initialize(timeout_t *); 63 extern void timeout_reinitialize(timeout_t *); 64 extern void timeout_register(timeout_t *, uint64_t, timeout_handler_t, void *); 65 extern bool timeout_unregister(timeout_t *); 67 66 68 67 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
