scx/scheds/include
I Hsin Cheng 0921fde1f1 scx_lavd: Adding READ_ONCE()/WRITE_ONCE() macros
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>
2024-06-01 11:07:52 +08:00
..
bpf-compat/gnu build: Add dummy gnu/stubs.h to fix build on systems without 32bit glibc-dev 2023-12-02 13:25:02 -10:00
scx scx_lavd: Adding READ_ONCE()/WRITE_ONCE() macros 2024-06-01 11:07:52 +08:00
vmlinux Sync from kernel (73f4013eb1eb) 2024-05-17 01:57:36 -10:00