x distro kernel. https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-2.6.37.y 2010-01-07T19:48:38Z x86: Merge asm/atomic_{32,64}.h 2010-01-07T19:48:38Z Brian Gerst brgerst@gmail.com 2010-01-07T16:53:35Z urn:sha1:5abbbbf0b0cd4abf5898136d0c345dc99b859c8c Merge the now identical code from asm/atomic_32.h and asm/atomic_64.h into asm/atomic.h. Signed-off-by: Brian Gerst <brgerst@gmail.com> LKML-Reference: <1262883215-4034-4-git-send-email-brgerst@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> x86: Sync asm/atomic_32.h and asm/atomic_64.h 2010-01-07T19:47:55Z Brian Gerst brgerst@gmail.com 2010-01-07T16:53:34Z urn:sha1:3ce59bb8352e1c53446bef1ead1c63956dfef64a Prepare for merging into asm/atomic.h. Signed-off-by: Brian Gerst <brgerst@gmail.com> LKML-Reference: <1262883215-4034-3-git-send-email-brgerst@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> x86: Split atomic64_t functions into seperate headers 2010-01-07T19:47:31Z Brian Gerst brgerst@gmail.com 2010-01-07T16:53:33Z urn:sha1:1a3b1d89eded68d64e5ea409ad37827310059441 Split atomic64_t functions out into separate headers, since they will not be practical to merge between 32 and 64 bits. Signed-off-by: Brian Gerst <brgerst@gmail.com> LKML-Reference: <1262883215-4034-2-git-send-email-brgerst@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> x86: atomic64: Code atomic(64)_read and atomic(64)_set in C not CPP 2009-07-03T12:42:39Z Paul Mackerras paulus@samba.org 2009-07-01T22:57:12Z urn:sha1:8e049ef054f1cc765f05f13e1396bb9a17c19e66 Occasionally we get bugs where atomic_read or atomic_set are used on atomic64_t variables or vice versa. These bugs don't generate warnings on x86 because atomic_read and atomic_set are coded as macros rather than C functions, so we don't get any type-checking on their arguments; similarly for atomic64_read and atomic64_set in 64-bit kernels. This converts them to C functions so that the arguments are type-checked and bugs like this will get caught more easily. It also converts atomic_cmpxchg and atomic_xchg, and atomic64_cmpxchg and atomic64_xchg on 64-bit, so we get type-checking on their arguments too. Compiling a typical 64-bit x86 config, this generates no new warnings, and the vmlinux text is 86 bytes smaller. Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: David Howells <dhowells@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Arnd Bergmann <arnd@arndb.de> LKML-Reference: <alpine.LFD.2.01.0907021653030.3210@localhost.localdomain> Signed-off-by: Ingo Molnar <mingo@elte.hu> asm-generic: rename atomic.h to atomic-long.h 2009-06-11T19:02:17Z Arnd Bergmann arnd@arndb.de 2009-05-13T22:56:29Z urn:sha1:72099ed2719fc5829bd79c6ca9d1783ed026eb37 The existing asm-generic/atomic.h only defines the atomic_long type. This renames it to atomic-long.h so we have a place to add a truly generic atomic.h that can be used on all non-SMP systems. Signed-off-by: Remis Lima Baima <remis.developer@googlemail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Ingo Molnar <mingo@elte.hu>