<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/lib/atomic64_test.c, branch v3.7-rc7</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/lib/atomic64_test.c?h=v3.7-rc7</id>
<link rel='self' href='https://git.amat.us/linux/atom/lib/atomic64_test.c?h=v3.7-rc7'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2012-07-31T00:25:16Z</updated>
<entry>
<title>atomic64_test: simplify the #ifdef for atomic64_dec_if_positive() test</title>
<updated>2012-07-31T00:25:16Z</updated>
<author>
<name>Catalin Marinas</name>
<email>catalin.marinas@arm.com</email>
</author>
<published>2012-07-30T21:41:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7463449b8287162454d7e00bf7fd2c64f72c1dc8'/>
<id>urn:sha1:7463449b8287162454d7e00bf7fd2c64f72c1dc8</id>
<content type='text'>
Introduce CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE and use this instead
of the multitude of #if defined() checks in atomic64_test.c

Signed-off-by: Catalin Marinas &lt;catalin.marinas@arm.com&gt;
Cc: Russell King &lt;linux@arm.linux.org.uk&gt;
Cc: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Paul Mackerras &lt;paulus@samba.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>bug.h: add include of it to various implicit C users</title>
<updated>2012-02-29T22:15:08Z</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2012-01-20T23:35:53Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=50af5ead3b44ccf8bd2b4d2a50c1b610f557c480'/>
<id>urn:sha1:50af5ead3b44ccf8bd2b4d2a50c1b610f557c480</id>
<content type='text'>
With bug.h currently living right in linux/kernel.h there
are files that use BUG_ON and friends but are not including
the header explicitly.  Fix them up so we can remove the
presence in kernel.h file.

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&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>
<email>asharma@fb.com</email>
</author>
<published>2011-07-26T23:09:06Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/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>ARM: 6213/1: atomic64_test: add ARM as supported architecture</title>
<updated>2010-07-27T09:43:46Z</updated>
<author>
<name>Will Deacon</name>
<email>will.deacon@arm.com</email>
</author>
<published>2010-07-08T09:59:59Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c58bbd39f876955be6e072748fdfe2b671f9d939'/>
<id>urn:sha1:c58bbd39f876955be6e072748fdfe2b671f9d939</id>
<content type='text'>
ARM has support for the atomic64_dec_if_positive operation
so ensure that it is tested by the atomic64_test routine.

Acked-by: Nicolas Pitre &lt;nicolas.pitre@linaro.org&gt;
Signed-off-by: Will Deacon &lt;will.deacon@arm.com&gt;
Signed-off-by: Russell King &lt;rmk+kernel@arm.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>lib: add s390 to atomic64_dec_if_positive archs</title>
<updated>2010-06-04T22:21:45Z</updated>
<author>
<name>Heiko Carstens</name>
<email>heiko.carstens@de.ibm.com</email>
</author>
<published>2010-06-04T21:15:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=007d08678eb87478b65b3f229960c81dd7c7b8f3'/>
<id>urn:sha1:007d08678eb87478b65b3f229960c81dd7c7b8f3</id>
<content type='text'>
Add s390 to list of architectures that have atomic64_dec_if_positive
implemented so we get rid of this warning:

lib/atomic64_test.c:129:2: warning: #warning Please implement
atomic64_dec_if_positive for your architecture, and add it to the IF above

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Cc: Luca Barbieri &lt;luca@luca-barbieri.com&gt;
Cc: "H. Peter Anvin" &lt;hpa@zytor.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>lib/atomic64_test: fix missing include of linux/kernel.h</title>
<updated>2010-05-24T20:33:32Z</updated>
<author>
<name>Peter Huewe</name>
<email>peterhuewe@gmx.de</email>
</author>
<published>2010-05-24T19:13:20Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0dbdd1bfe0b83798763540111118b78b70792f00'/>
<id>urn:sha1:0dbdd1bfe0b83798763540111118b78b70792f00</id>
<content type='text'>
Fix a build-failure
(http://kisskb.ellerman.id.au/kisskb/buildresult/2601239/) by adding the
missing include file (linux/kernel.h) for printk and KERN_INFO.

Signed-off-by: Peter Huewe &lt;peterhuewe@gmx.de&gt;
LKML-Reference: &lt;201005241913.o4OJDKdf010884@imap1.linux-foundation.org&gt;
Cc: Luca Barbieri &lt;luca@luca-barbieri.com&gt;
Cc: "H. Peter Anvin" &lt;hpa@zytor.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>x86, atomic64: In selftest, distinguish x86-64 from 586+</title>
<updated>2010-03-01T19:51:56Z</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2010-03-01T19:49:23Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a5c9161f27c3e1ae6c0094d262f03a7e98262181'/>
<id>urn:sha1:a5c9161f27c3e1ae6c0094d262f03a7e98262181</id>
<content type='text'>
The x86-64 implementation of the atomics is totally different from the
i586+ implementation, which makes it quite confusing to call it
"586+".  Also fix indentation, and add "i" for "i386" and "i586" as
used elsewhere in the kernel.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Cc: Luca Barbieri &lt;luca@luca-barbieri.com&gt;
LKML-Reference: &lt;1267005265-27958-4-git-send-email-luca@luca-barbieri.com&gt;
</content>
</entry>
<entry>
<title>lib: Fix atomic64_inc_not_zero test</title>
<updated>2010-03-01T19:39:02Z</updated>
<author>
<name>Luca Barbieri</name>
<email>luca@luca-barbieri.com</email>
</author>
<published>2010-03-01T18:55:48Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=25a304f277ad70166eeae25a4958d2049005c33a'/>
<id>urn:sha1:25a304f277ad70166eeae25a4958d2049005c33a</id>
<content type='text'>
atomic64_inc_not_zero must return 1 if it perfomed the add and 0 otherwise.
The test assumed the opposite convention.

Signed-off-by: Luca Barbieri &lt;luca@luca-barbieri.com&gt;
LKML-Reference: &lt;1267469749-11878-5-git-send-email-luca@luca-barbieri.com&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
</entry>
<entry>
<title>lib: Fix atomic64_add_unless test</title>
<updated>2010-03-01T19:38:46Z</updated>
<author>
<name>Luca Barbieri</name>
<email>luca@luca-barbieri.com</email>
</author>
<published>2010-03-01T18:55:45Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=9efbcd590243045111670c171a951923b877b57d'/>
<id>urn:sha1:9efbcd590243045111670c171a951923b877b57d</id>
<content type='text'>
atomic64_add_unless must return 1 if it perfomed the add and 0 otherwise.
The test assumed the opposite convention.

Reported-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Signed-off-by: Luca Barbieri &lt;luca@luca-barbieri.com&gt;
LKML-Reference: &lt;1267469749-11878-2-git-send-email-luca@luca-barbieri.com&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
</entry>
<entry>
<title>x86: Implement atomic[64]_dec_if_positive()</title>
<updated>2010-03-01T19:38:42Z</updated>
<author>
<name>Luca Barbieri</name>
<email>luca@luca-barbieri.com</email>
</author>
<published>2010-02-26T11:22:41Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d7f6de1e9c4a12e11ba7186c70f0f40caa76f590'/>
<id>urn:sha1:d7f6de1e9c4a12e11ba7186c70f0f40caa76f590</id>
<content type='text'>
Add support for atomic_dec_if_positive(), and
atomic64_dec_if_positive() for x86-64.

atomic64_dec_if_positive() for x86-32 was already implemented in a previous patch.

Signed-off-by: Luca Barbieri &lt;luca@luca-barbieri.com&gt;
LKML-Reference: &lt;1267183361-20775-2-git-send-email-luca@luca-barbieri.com&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
</entry>
</feed>
