atomics: Add test for atomic operations with _relaxed variants
authorBoqun Feng <boqun.feng@gmail.com>
Wed, 4 Nov 2015 10:52:45 +0000 (18:52 +0800)
committerIngo Molnar <mingo@kernel.org>
Mon, 23 Nov 2015 09:01:58 +0000 (10:01 +0100)
commit978e5a3692c3b674b4c7c412e96835fd996c2ff4
tree9a1122504ad9817a6d877e073d834a014765a65e
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4
atomics: Add test for atomic operations with _relaxed variants

Some atomic operations now have _relaxed/acquire/release variants, this
patch adds some trivial tests for two purposes:

  1. test the behavior of these new operations in single-CPU
     environment.

  2. make their code generated before we actually use them somewhere,
     so that we can examine their assembly code.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Waiman Long <waiman.long@hp.com>
Cc: Will Deacon <will.deacon@arm.com>
Link: http://lkml.kernel.org/r/1446634365-25176-1-git-send-email-boqun.feng@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
lib/atomic64_test.c