diff options
author | Richard Braun <rbraun@sceen.net> | 2017-09-01 23:58:40 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-09-01 23:58:40 +0200 |
commit | 850c52ee1b4e91c6781d337bc129302697188f62 (patch) | |
tree | 3cf906e75053a0693966efded88a4be769378809 /kern/timer.c | |
parent | fe715443e82b068a0b061f1b8ed3c01a96b1e4ba (diff) |
kern/timer: make timer time reads non atomic
This makes such accesses on 32-bits processor without 64-bits atomic
instruction too cumbersome for what it's worth.
Diffstat (limited to 'kern/timer.c')
-rw-r--r-- | kern/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/timer.c b/kern/timer.c index ba148d5f..77a6bb36 100644 --- a/kern/timer.c +++ b/kern/timer.c @@ -239,7 +239,7 @@ timer_set_canceled(struct timer *timer) static void timer_set_time(struct timer *timer, uint64_t ticks) { - atomic_store(&timer->ticks, ticks, ATOMIC_RELAXED); + timer->ticks = ticks; } static bool |