diff options
Diffstat (limited to 'include/linux/timer.h')
| -rw-r--r-- | include/linux/timer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/timer.h b/include/linux/timer.h index 6abd9138beda..cbd32ec4dd15 100644 --- a/include/linux/timer.h +++ b/include/linux/timer.h | |||
| @@ -58,7 +58,9 @@ extern struct tvec_base boot_tvec_bases; | |||
| 58 | * the timer will be serviced when the CPU eventually wakes up with a | 58 | * the timer will be serviced when the CPU eventually wakes up with a |
| 59 | * subsequent non-deferrable timer. | 59 | * subsequent non-deferrable timer. |
| 60 | */ | 60 | */ |
| 61 | #define TBASE_DEFERRABLE_FLAG (0x1) | 61 | #define TIMER_DEFERRABLE 0x1LU |
| 62 | |||
| 63 | #define TIMER_FLAG_MASK 0x1LU | ||
| 62 | 64 | ||
| 63 | #define TIMER_INITIALIZER(_function, _expires, _data) { \ | 65 | #define TIMER_INITIALIZER(_function, _expires, _data) { \ |
| 64 | .entry = { .prev = TIMER_ENTRY_STATIC }, \ | 66 | .entry = { .prev = TIMER_ENTRY_STATIC }, \ |
| @@ -72,7 +74,7 @@ extern struct tvec_base boot_tvec_bases; | |||
| 72 | } | 74 | } |
| 73 | 75 | ||
| 74 | #define TBASE_MAKE_DEFERRED(ptr) ((struct tvec_base *) \ | 76 | #define TBASE_MAKE_DEFERRED(ptr) ((struct tvec_base *) \ |
| 75 | ((unsigned char *)(ptr) + TBASE_DEFERRABLE_FLAG)) | 77 | ((unsigned char *)(ptr) + TIMER_DEFERRABLE)) |
| 76 | 78 | ||
| 77 | #define TIMER_DEFERRED_INITIALIZER(_function, _expires, _data) {\ | 79 | #define TIMER_DEFERRED_INITIALIZER(_function, _expires, _data) {\ |
| 78 | .entry = { .prev = TIMER_ENTRY_STATIC }, \ | 80 | .entry = { .prev = TIMER_ENTRY_STATIC }, \ |
