• Akinobu Mita's avatar
    [PATCH] x86_64: {set,clear,test}_bit() related cleanup and pci_mmcfg_init() fix · 3d1712c9
    Akinobu Mita authored
    While working on these patch set, I found several possible cleanup on x86-64
    and ia64.
    
    akpm: I stole this from Andi's queue.
    
    Not only does it clean up bitops.  It also unrelatedly changes the prototype
    of pci_mmcfg_init() and removes its arch_initcall().  It seems that the wrong
    two patches got joined together, but this is the one which has been tested.
    
    This patch fixes the current x86_64 build error (the pci_mmcfg_init()
    declaration in arch/i386/pci/pci.h disagrees with the definition in
    arch/x86_64/pci/mmconfig.c)
    
    This also means that x86_64's pci_mmcfg_init() gets called in the same (new)
    manner as x86's: from arch/i386/pci/init.c:pci_access_init(), rather than via
    initcall.
    
    The bitops cleanups came along for free.
    
    All this worked OK in -mm testing (since 2.6.16-rc4-mm1) because x86_64 was
    tested with both patches applied.
    Signed-off-by: default avatarAkinobu Mita <mita@miraclelinux.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Cc: Con Kolivas <kernel@kolivas.org>
    Cc: Jean Delvare <khali@linux-fr.org>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    3d1712c9
pgtable.h 15.3 KB