scx/scheds/rust/scx_lavd/src
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 scx_lavd: Adding READ_ONCE()/WRITE_ONCE() macros 2024-06-01 11:07:52 +08:00
bpf_intf.rs scx_lavd: fix copyright information 2024-04-26 16:36:58 +09:00
bpf_skel.rs scx_lavd: fix copyright information 2024-04-26 16:36:58 +09:00
main.rs Add missing skel.attach() calls 2024-05-17 14:33:04 -10:00