arch: Implement local64_t
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Fri, 21 May 2010 12:05:13 +0000 (14:05 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Jun 2010 09:12:36 +0000 (11:12 +0200)
commit1996bda2a42480c275656233e631ee0966574be4
treec4c61b6bde252d3d6f1dc0b62d48cf3a3e486ec1
parentd57e34fdd60be7ffd0b1d86bfa1a553df86b7172
arch: Implement local64_t

On 64bit, local_t is of size long, and thus we make local64_t an alias.
On 32bit, we fall back to atomic64_t. (architecture can provide optimized
32-bit version)

(This new facility is to be used by perf events optimizations.)

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: linux-arch@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
23 files changed:
arch/alpha/include/asm/local64.h [new file with mode: 0644]
arch/arm/include/asm/local64.h [new file with mode: 0644]
arch/avr32/include/asm/local64.h [new file with mode: 0644]
arch/blackfin/include/asm/local64.h [new file with mode: 0644]
arch/cris/include/asm/local64.h [new file with mode: 0644]
arch/frv/include/asm/local64.h [new file with mode: 0644]
arch/frv/kernel/local64.h [new file with mode: 0644]
arch/h8300/include/asm/local64.h [new file with mode: 0644]
arch/ia64/include/asm/local64.h [new file with mode: 0644]
arch/m32r/include/asm/local64.h [new file with mode: 0644]
arch/m68k/include/asm/local64.h [new file with mode: 0644]
arch/microblaze/include/asm/local64.h [new file with mode: 0644]
arch/mips/include/asm/local64.h [new file with mode: 0644]
arch/mn10300/include/asm/local64.h [new file with mode: 0644]
arch/parisc/include/asm/local64.h [new file with mode: 0644]
arch/powerpc/include/asm/local64.h [new file with mode: 0644]
arch/s390/include/asm/local64.h [new file with mode: 0644]
arch/score/include/asm/local64.h [new file with mode: 0644]
arch/sh/include/asm/local64.h [new file with mode: 0644]
arch/sparc/include/asm/local64.h [new file with mode: 0644]
arch/x86/include/asm/local64.h [new file with mode: 0644]
arch/xtensa/include/asm/local64.h [new file with mode: 0644]
include/asm-generic/local64.h [new file with mode: 0644]