• Ingo Molnar's avatar
    x86: atomic64: Move the 32-bit atomic64_t implementation to a .c file · b7882b7c
    Ingo Molnar authored
    Linus noted that the atomic64_t primitives are all inlines
    currently which is crazy because these functions have a large
    register footprint anyway.
    
    Move them to a separate file: arch/x86/lib/atomic64_32.c
    
    Also, while at it, rename all uses of 'unsigned long long' to
    the much shorter u64.
    
    This makes the appearance of the prototypes a lot nicer - and
    it also uncovered a few bugs where (yet unused) API variants
    had 'long' as their return type instead of u64.
    
    [ More intrusive changes are not yet done in this patch. ]
    Reported-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Cc: Eric Dumazet <eric.dumazet@gmail.com>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Paul Mackerras <paulus@samba.org>
    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: default avatarIngo Molnar <mingo@elte.hu>
    b7882b7c
Makefile 692 Bytes