diff options
author | Richard Braun <rbraun@sceen.net> | 2018-04-14 22:10:27 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-04-14 22:33:52 +0200 |
commit | 32a436158554923171d5c2bf7e160290e008436a (patch) | |
tree | b17e0d4d871bcb6b91c47c217de8ee0f1d056672 /kern/clock.c | |
parent | d4a39d61e853f570ec8d599e9500a80b035fb61f (diff) |
kern/atomic: fix consume memory order
The consume memory order is known to be problematic in the C11 specification,
and as a result, most compilers alias it to acquire. Based on the assumption
that the kernel doesn't run on architectures with an Alpha-like memory
model, the consume memory order was aliased to relaxed, letting the CPU
identify data dependencies. But there may also be issues at compile time,
making this hack is dangerous. As a result, the actual consume memory order
as implemented by the compiler is now used to define the kernel consume
memory order.
See https://lwn.net/Articles/588300/.
Diffstat (limited to 'kern/clock.c')
0 files changed, 0 insertions, 0 deletions