h8300: Provide atomic_{or,xor,and}
authorPeter Zijlstra <peterz@infradead.org>
Fri, 10 Jul 2015 10:55:45 +0000 (12:55 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 27 Jul 2015 12:06:24 +0000 (14:06 +0200)
commit73ada3700bbb0a4c7cc06ea8d74e93c689f90cdb
tree7080670f15d0087e409b3ed4ac0ce24829c0d7e1
parentb0d8003ef405c4148b703cdaab1171045c6c3bbd
h8300: Provide atomic_{or,xor,and}

Implement atomic logic ops -- atomic_{or,xor,and}

These will replace the atomic_{set,clear}_mask functions that are
available on some archs.

Also rework the atomic implementation in terms of CPP macros to avoid
the typical repetition -- I seem to have missed this arch the last
time around when I did that.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/h8300/include/asm/atomic.h