diff options
author | Frederic Weisbecker <frederic@kernel.org> | 2024-02-25 23:55:04 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-02-26 11:37:32 +0100 |
commit | a478ffb2ae234ee1ece2b84719762c54d304e2c7 (patch) | |
tree | 65f1f3803cdd17c4d1b4c4be3b8269fd4a35d490 /scripts | |
parent | 3ce74f1a8566dbbc9774f85fb0ce781fe290fd32 (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 <frederic@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20240225225508.11587-13-frederic@kernel.org
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions