aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2024-02-25 23:55:04 +0100
committerThomas Gleixner <[email protected]>2024-02-26 11:37:32 +0100
commita478ffb2ae234ee1ece2b84719762c54d304e2c7 (patch)
tree65f1f3803cdd17c4d1b4c4be3b8269fd4a35d490 /tools/testing/selftests/bpf/progs/test_autoload.c
parent3ce74f1a8566dbbc9774f85fb0ce781fe290fd32 (diff)
tick: Move individual bit features to debuggable mask accesses
The individual bitfields of struct tick_sched must be modified from IRQs disabled places, otherwise local modifications can race due to them sharing the same memory storage. The recent move of the "got_idle_tick" bitfield to its own storage shows that the use of these bitfields, as pretty as they look, can be as much error prone. In order to avoid future issues of the like and make sure that those bitfields are safely accessed, move those flags to an explicit mask along with a mutator function performing the basic IRQs disabled sanity check. Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions