mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-29 14:10:24 +00:00
Merge pull request #318 from vax-r/Memory_barrier
scx_lavd: Enforce memory barrier in flip_sys_cpu_util
This commit is contained in:
commit
0371ccae40
@ -520,7 +520,7 @@ static struct sys_cpu_util *get_sys_cpu_util_next(void)
|
||||
|
||||
static void flip_sys_cpu_util(void)
|
||||
{
|
||||
__sys_cpu_util_idx ^= 0x1;
|
||||
__sync_fetch_and_xor(&__sys_cpu_util_idx, 0x1);
|
||||
}
|
||||
|
||||
static __attribute__((always_inline))
|
||||
|
Loading…
Reference in New Issue
Block a user