summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2016-03-24 15:38:00 +0100
committerIngo Molnar <mingo@kernel.org>2016-03-29 11:52:11 +0200
commitf009a7a767e792d5ab0b46c08d46236ea5271dd9 (patch)
tree68a22ef0eee00723de6f05e9f8b0d68eeacd195f /kernel/workqueue.c
parent5acba71e18833b9d06686b3751598bfa263a3ac3 (diff)
downloadblackbird-obmc-linux-f009a7a767e792d5ab0b46c08d46236ea5271dd9.tar.gz
blackbird-obmc-linux-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 <torvalds@linux-foundation.org> Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1458830281-4255-3-git-send-email-fweisbec@gmail.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud