summaryrefslogtreecommitdiff
path: root/kern/rtmutex_i.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-04-14 22:10:27 +0200
committerRichard Braun <rbraun@sceen.net>2018-04-14 22:33:52 +0200
commit32a436158554923171d5c2bf7e160290e008436a (patch)
treeb17e0d4d871bcb6b91c47c217de8ee0f1d056672 /kern/rtmutex_i.h
parentd4a39d61e853f570ec8d599e9500a80b035fb61f (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/rtmutex_i.h')
0 files changed, 0 insertions, 0 deletions