Michael S. Tsirkin 9e3f84ce41 sh: move xchg_cmpxchg to a header by itself
Looks like future sh variants will support a 4-byte cas which will be
used to implement 1 and 2 byte xchg.

This is exactly what we do for llsc now, move the portable part of the
code into a separate header so it's easy to reuse.

Suggested-by:  Rich Felker <dalias@libc.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
2016-01-12 20:47:02 +02:00
..
2010-11-04 12:32:24 +09:00
2015-07-27 14:06:23 +02:00
2015-07-27 14:06:23 +02:00
2014-04-18 14:20:44 +02:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-12 22:19:10 +01:00
2016-01-12 20:47:01 +02:00
2016-01-12 20:47:01 +02:00
2016-01-12 20:47:01 +02:00
2012-01-13 16:27:38 +09:00
2012-05-19 18:50:09 +09:00
2013-01-11 21:02:57 +09:00
2014-01-23 16:36:54 -08:00
2012-03-28 18:30:03 +01:00
2011-07-26 16:49:47 -07:00
2012-05-18 14:52:31 +09:00
2010-11-01 09:49:04 -04:00
2015-09-08 14:35:59 -07:00
2012-05-21 17:54:01 +09:00
2012-05-24 15:03:46 +09:00
2013-11-15 09:32:18 +09:00
2015-01-13 15:24:08 +02:00
2011-07-26 16:49:47 -07:00
2012-05-14 13:04:08 +09:00
2015-01-13 15:23:38 +02:00
2015-01-13 15:23:21 +02:00
2011-03-31 11:26:23 -03:00