diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-22 20:20:08 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-22 20:20:08 +0200 |
commit | 3d7ae10a541629727844163f7d64507baedd6c78 (patch) | |
tree | a31d9274c64c743cd944414ae4833b880283ffcc /utils.h | |
parent | dc83b9bf92439f0472333dca0bfa1f7edda689b4 (diff) |
Add a shared timer, remove timerfd usage from idle and announce
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -160,6 +160,10 @@ static inline bool list_empty(struct list_head *list) #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) +#define MAX(a, b) ((a) > (b) ? (a) : (b)) + +#define DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) + #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) #define container_of(ptr, type, member) ({ \ |