mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-29 14:10:24 +00:00
0921fde1f1
In order to prevent compiler from merging or refetching load/store operations or unwanted reordering, we take the implemetation of READ_ONCE()/WRITE_ONCE() from kernel sources under "/include/asm-generic/rwonce.h". Use WRITE_ONCE() in function flip_sys_cpu_util() to ensure the compiler doesn't perform unnecessary optimization so the compiler won't make incorrect assumptions when performing the operation of modifying of bit flipping. Signed-off-by: I Hsin Cheng <richard120310@gmail.com> |
||
---|---|---|
.. | ||
bpf-compat/gnu | ||
scx | ||
vmlinux |