locking/atomic: Introduce atomic_fetch_or()
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 24 Mar 2016 14:37:59 +0000 (15:37 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 29 Mar 2016 09:52:11 +0000 (11:52 +0200)
commit5acba71e18833b9d06686b3751598bfa263a3ac3
tree31ad607ebf024af39acb6ff1a68947fb6c727f03
parent1993b176a8224e371e0732ffada7ab9eb3b0912b
locking/atomic: Introduce atomic_fetch_or()

This is deemed to replace the type generic fetch_or() which brings a lot
of issues such as macro induced block variable aliasing and sloppy types.
Not to mention fetch_or() doesn't refer to any namespace, adding even
more confusion.

So lets provide an atomic_t version. Current and next users of fetch_or()
are thus encouraged to use atomic_t.

Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1458830281-4255-2-git-send-email-fweisbec@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/atomic.h