• Li Shaohua's avatar
    [PATCH] PCI resource allocation re-ordering · a06a3014
    Li Shaohua authored
    This re-orders the PCI and ACPI IO resource assignment as suggested by
    Linus.
    
    With this patch, now the sequence of reserving resources is:
     1. PCI claim BAR
     2. ACPI reserve motherboard resources
     3. PNP reserve motherboard resources
     4. PCI allocate resources for uninitialized PCI devices
    
    This way the kernel allocates new PCI resources after it has full
    knowledge of the resource state, and at the same time allows ACPI and
    PnP to be run _after_ we've filled in our knowledge about pre-allocated
    resources. 
    
    The way it is done is to make the last phase of the original PCI assign
    resources code to be an 'fs_initcall', along with the ACPI and PnP
    initializations.
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    a06a3014
system.c 2.46 KB