diff options
| author | Frederic Weisbecker <[email protected]> | 2016-03-24 14:38:00 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2016-03-29 09:52:11 +0000 |
| commit | f009a7a767e792d5ab0b46c08d46236ea5271dd9 (patch) | |
| tree | 68a22ef0eee00723de6f05e9f8b0d68eeacd195f /lib/assoc_array.c | |
| parent | locking/atomic: Introduce atomic_fetch_or() (diff) | |
| download | kernel-f009a7a767e792d5ab0b46c08d46236ea5271dd9.tar.gz kernel-f009a7a767e792d5ab0b46c08d46236ea5271dd9.zip | |
timers/nohz: Convert tick dependency mask to atomic_t
The tick dependency mask was intially unsigned long because this is the
type on which clear_bit() operates on and fetch_or() accepts it.
But now that we have atomic_fetch_or(), we can instead use
atomic_andnot() to clear the bit. This consolidates the type of our
tick dependency mask, reduce its size on structures and benefit from
possible architecture optimizations on atomic_t operations.
Suggested-by: Linus Torvalds <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions
