<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/sparc/lib/atomic32.c, branch linux-4.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-06-16T08:48:30Z</updated>
<entry>
<title>locking/atomic, arch/sparc: Implement atomic{,64}_fetch_{add,sub,and,or,xor}()</title>
<updated>2016-06-16T08:48:30Z</updated>
<author>
<name>Peter Zijlstra</name>
</author>
<published>2016-04-17T23:16:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3a1adb23a52c920304239efff377d3bc967febc2'/>
<id>urn:sha1:3a1adb23a52c920304239efff377d3bc967febc2</id>
<content type='text'>
Implement FETCH-OP atomic primitives, these are very similar to the
existing OP-RETURN primitives we already have, except they return the
value of the atomic variable _before_ modification.

This is especially useful for irreversible operations -- such as
bitops (because it becomes impossible to reconstruct the state prior
to modification).

Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Acked-by: David S. Miller &lt;davem@davemloft.net&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: James Y Knight &lt;jyknight@google.com&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Paul E. McKenney &lt;paulmck@linux.vnet.ibm.com&gt;
Cc: Peter Zijlstra &lt;peterz@infradead.org&gt;
Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Cc: linux-arch@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: sparclinux@vger.kernel.org
Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
</content>
</entry>
<entry>
<title>sparc: Provide atomic_{or,xor,and}</title>
<updated>2015-07-27T12:06:23Z</updated>
<author>
<name>Peter Zijlstra</name>
</author>
<published>2014-04-23T17:40:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=304a0d699a3c6103b61d5ea18d56820e7d8e3116'/>
<id>urn:sha1:304a0d699a3c6103b61d5ea18d56820e7d8e3116</id>
<content type='text'>
Implement atomic logic ops -- atomic_{or,xor,and}.

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

Acked-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Peter Zijlstra (Intel) &lt;peterz@infradead.org&gt;
Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
</content>
</entry>
<entry>
<title>sparc32: Implement xchg and atomic_xchg using ATOMIC_HASH locks</title>
<updated>2014-11-07T20:51:44Z</updated>
<author>
<name>Andreas Larsson</name>
</author>
<published>2014-11-05T14:52:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1a17fdc4f4ed06b63fac1937470378a5441a663a'/>
<id>urn:sha1:1a17fdc4f4ed06b63fac1937470378a5441a663a</id>
<content type='text'>
Atomicity between xchg and cmpxchg cannot be guaranteed when xchg is
implemented with a swap and cmpxchg is implemented with locks.
Without this, e.g. mcs_spin_lock and mcs_spin_unlock are broken.

Signed-off-by: Andreas Larsson &lt;andreas@gaisler.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>locking,arch,sparc: Fold atomic_ops</title>
<updated>2014-08-14T10:48:13Z</updated>
<author>
<name>Peter Zijlstra</name>
</author>
<published>2014-03-26T17:29:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4f3316c2b5fe2062c26c9b66915b5a5c80c60a5c'/>
<id>urn:sha1:4f3316c2b5fe2062c26c9b66915b5a5c80c60a5c</id>
<content type='text'>
Many of the atomic op implementations are the same except for one
instruction; fold the lot into a few CPP macros and reduce LoC.

This also prepares for easy addition of new ops.

Signed-off-by: Peter Zijlstra &lt;peterz@infradead.org&gt;
Acked-by: David S. Miller &lt;davem@davemloft.net&gt;
Cc: Bjorn Helgaas &lt;bhelgaas@google.com&gt;
Cc: Kirill Tkhai &lt;tkhai@yandex.ru&gt;
Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Paul E. McKenney &lt;paulmck@linux.vnet.ibm.com&gt;
Cc: Sam Ravnborg &lt;sam@ravnborg.org&gt;
Cc: sparclinux@vger.kernel.org
Link: http://lkml.kernel.org/r/20140508135852.825281379@infradead.org
Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
</content>
</entry>
<entry>
<title>sparc: Fix __atomic_add_unless() return value.</title>
<updated>2011-08-04T09:47:40Z</updated>
<author>
<name>Josip Rodin</name>
</author>
<published>2011-08-04T09:47:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a61b582954183e93a3dc3a5cf6bfd2e2c3b40aba'/>
<id>urn:sha1:a61b582954183e93a3dc3a5cf6bfd2e2c3b40aba</id>
<content type='text'>
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sparc: rename atomic_add_unless</title>
<updated>2011-07-27T19:53:36Z</updated>
<author>
<name>Stephen Rothwell</name>
</author>
<published>2011-07-27T19:49:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=678624e401b0b7747762b5223fb23f86dcdacc93'/>
<id>urn:sha1:678624e401b0b7747762b5223fb23f86dcdacc93</id>
<content type='text'>
Should have been done in commit 1af08a1407f4 ("This is in preparation
for more generic atomic").

Signed-off-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Cc: Arun Sharma &lt;asharma@fb.com&gt;
Cc: David Miller &lt;davem@davemloft.net&gt;
Cc: "Hans-Christian Egtvedt" &lt;hans-christian.egtvedt@atmel.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>atomic: use &lt;linux/atomic.h&gt;</title>
<updated>2011-07-26T23:49:47Z</updated>
<author>
<name>Arun Sharma</name>
</author>
<published>2011-07-26T23:09:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=60063497a95e716c9a689af3be2687d261f115b4'/>
<id>urn:sha1:60063497a95e716c9a689af3be2687d261f115b4</id>
<content type='text'>
This allows us to move duplicated code in &lt;asm/atomic.h&gt;
(atomic_inc_not_zero() for now) to &lt;linux/atomic.h&gt;

Signed-off-by: Arun Sharma &lt;asharma@fb.com&gt;
Reviewed-by: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: David Miller &lt;davem@davemloft.net&gt;
Cc: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>sparc: Replace deprecated spinlock initialization</title>
<updated>2011-01-27T11:30:37Z</updated>
<author>
<name>Thomas Gleixner</name>
</author>
<published>2011-01-23T14:19:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=24774fbdeab8f6ac05a19e81bd645b0f7e5d2bb7'/>
<id>urn:sha1:24774fbdeab8f6ac05a19e81bd645b0f7e5d2bb7</id>
<content type='text'>
SPIN_LOCK_UNLOCK is deprecated. Use the lockdep capable variant
instead.

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Acked-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[SPARC32]: Build fix.</title>
<updated>2007-05-31T08:52:51Z</updated>
<author>
<name>Andrew Morton</name>
</author>
<published>2007-05-31T08:19:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1fb8812ba5a4c34b680d4405216310233f3c7573'/>
<id>urn:sha1:1fb8812ba5a4c34b680d4405216310233f3c7573</id>
<content type='text'>
Fix 6197fe4d720ea3e2ee94cdc7ef32d6c0151199de

arch/sparc/lib/atomic32.c: In function '__cmpxchg_u32':
arch/sparc/lib/atomic32.c:127: error: 'addr' undeclared (first use in this function)
arch/sparc/lib/atomic32.c:127: error: (Each undeclared identifier is reported only once
arch/sparc/lib/atomic32.c:127: error: for each function it appears in.)

I assume this is what was intended..

Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Acked-by: William Irwin &lt;wli@holomorphy.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[SPARC]: Emulate cmpxchg like parisc</title>
<updated>2007-05-29T09:51:13Z</updated>
<author>
<name>Kyle McMartin</name>
</author>
<published>2007-05-29T09:51:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6197fe4d720ea3e2ee94cdc7ef32d6c0151199de'/>
<id>urn:sha1:6197fe4d720ea3e2ee94cdc7ef32d6c0151199de</id>
<content type='text'>
Signed-off-by: Kyle McMartin &lt;kyle@parisc-linux.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
