summaryrefslogtreecommitdiff
path: root/kern/timer.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-02-12 02:09:44 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-02-12 02:11:11 +0100
commit00e36dabb4cdef51095aece46e451f2fab4c13c1 (patch)
tree20b24b481b496abc40bd901a5a69b0c3ed4efefd /kern/timer.c
parentc72c74b8544763f536566d3004a2cc957f1b1937 (diff)
Use MACRO_BEGIN/END
This notably fixes at least a SAVE_HINT call.
Diffstat (limited to 'kern/timer.c')
-rw-r--r--kern/timer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/kern/timer.c b/kern/timer.c
index 13dfc207..27137c80 100644
--- a/kern/timer.c
+++ b/kern/timer.c
@@ -378,10 +378,11 @@ static void timer_grab(
} while ( (save)->high != (timer)->high_bits_check);
}
-#define TIMER_TO_TIME_VALUE64(tv, timer) do { \
+#define TIMER_TO_TIME_VALUE64(tv, timer) \
+MACRO_BEGIN \
(tv)->seconds = (timer)->high + (timer)->low / 1000000; \
- (tv)->nanoseconds = (timer)->low % 1000000 * 1000; \
-} while(0);
+ (tv)->nanoseconds = (timer)->low % 1000000 * 1000; \
+MACRO_END
/*
* timer_read reads the value of a timer into a time_value64_t. If the