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:24 +02:00
2015-07-27 14:06:23 +02:00
2015-07-27 14:06:23 +02:00
2015-09-23 09:54:28 +02:00
2016-01-12 20:46:57 +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-10-02 18:01:25 +01:00
2012-06-14 14:18:51 +09:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-10-02 18:01:25 +01:00
2010-12-01 15:39:51 +09:00
2012-10-02 18:01:25 +01:00
2013-12-04 17:19:44 +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:02 +02:00
2016-01-12 20:47:02 +02:00
2016-01-12 20:47:01 +02:00
2012-01-13 16:27:38 +09:00
2015-09-10 13:29:01 -07:00
2014-07-09 10:55:57 +02: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
2013-11-13 12:09:13 +09:00
2015-07-20 22:30:53 -04:00
2012-03-28 18:30:03 +01:00
2011-03-11 12:23:31 +01:00
2013-01-25 09:24:30 +09:00
2015-06-25 17:00:35 -07:00
2012-10-09 09:47:37 +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
2014-08-06 18:01:13 -07:00
2014-04-07 16:36:11 -07:00
2015-09-08 14:35:59 -07:00
2012-05-21 17:54:01 +09:00
2015-07-17 16:39:53 -07:00
2012-05-24 15:03:46 +09:00
2012-04-11 10:48:24 +09:00
2014-04-07 16:36:11 -07:00
2015-03-10 13:54:42 +10:30
2011-06-27 14:13:09 -07:00
2012-09-28 14:31:03 +09:30
2013-06-26 12:10:55 +02:00
2015-10-16 11:42:28 -07:00
2015-06-08 07:56:43 -05:00
2013-11-15 09:32:18 +09:00
2015-02-10 14:30:33 -08:00
2015-02-10 14:30:33 -08:00
2015-02-11 17:06:03 -08:00
2012-10-09 09:47:37 +01:00
2013-11-13 12:09:13 +09:00
2013-11-13 12:09:13 +09:00
2014-07-17 12:32:47 +02:00
2012-10-09 09:47:37 +01:00
2012-10-09 09:47:37 +01:00
2012-10-09 09:47:37 +01:00
2011-01-27 12:30:39 +01:00
2014-10-09 22:26:04 -04:00
2015-01-13 15:24:08 +02:00
2012-10-09 09:47:37 +01:00
2012-07-20 11:23:44 +05:30
2011-07-26 16:49:47 -07:00
2012-04-19 15:45:57 +09:00
2011-05-23 14:42:15 +09:00
2012-10-02 18:01:25 +01:00
2013-04-22 00:35:53 +02:00
2015-08-04 09:38:05 +02:00
2012-03-28 18:30:03 +01:00
2012-10-02 18:01:25 +01:00
2014-09-23 16:20:01 -04:00
2014-09-23 16:20:01 -04:00
2012-10-02 18:01:25 +01:00
2014-04-03 16:20:52 -07:00
2012-11-28 22:36:47 -05:00
2012-10-02 18:01:25 +01:00
2015-04-12 20:58:25 +02:00
2014-04-25 16:05:40 -07:00
2012-05-09 15:00:55 +02:00
2014-04-03 16:20:52 -07:00
2012-05-14 13:04:08 +09:00
2012-10-02 18:01:25 +01:00
2012-10-09 09:47:37 +01:00
2012-06-13 10:28:37 +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
2010-11-04 12:46:19 +09:00
2014-06-04 16:54:14 -07:00
2012-06-13 10:28:37 +09:00