]> git.hungrycats.org Git - linux/commit
[PATCH] PCI resource allocation re-ordering
authorLi Shaohua <shaohua.li@intel.com>
Sun, 10 Oct 2004 03:15:28 +0000 (20:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 10 Oct 2004 03:15:28 +0000 (20:15 -0700)
commita06a30144bbc34bf49b61f0a847edfddfdd16b5d
treeefba1aece9a6eeeb7ffb4899b7227aba3870f9e8
parent548a0574f997ae102e8ea116bc516ce9c2edb2d4
[PATCH] PCI resource allocation re-ordering

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: Linus Torvalds <torvalds@osdl.org>
arch/i386/pci/i386.c
drivers/acpi/motherboard.c
drivers/pnp/system.c