diff options
author | Li Shaohua <shaohua.li@intel.com> | 2004-10-09 20:15:28 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-09 20:15:28 -0700 |
commit | a06a30144bbc34bf49b61f0a847edfddfdd16b5d (patch) | |
tree | efba1aece9a6eeeb7ffb4899b7227aba3870f9e8 /drivers/pnp/system.c | |
parent | 548a0574f997ae102e8ea116bc516ce9c2edb2d4 (diff) |
[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>
Diffstat (limited to 'drivers/pnp/system.c')
-rw-r--r-- | drivers/pnp/system.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/pnp/system.c b/drivers/pnp/system.c index da52c86dc23a..d42015c382af 100644 --- a/drivers/pnp/system.c +++ b/drivers/pnp/system.c @@ -104,4 +104,8 @@ static int __init pnp_system_init(void) return pnp_register_driver(&system_pnp_driver); } -subsys_initcall(pnp_system_init); +/** + * Reserve motherboard resources after PCI claim BARs, + * but before PCI assign resources for uninitialized PCI devices + */ +fs_initcall(pnp_system_init); |