diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-17 13:51:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-17 13:51:55 -0400 |
commit | 499ee0710f9881423d807c6ecc451c5e1bd5ff62 (patch) | |
tree | 27f94b3d81e7c3e5dbc97b7b1fa2d16257fc5af4 /arch/x86/kernel | |
parent | 8e3b3bb5e5ac064f83a8556100f10b7dfa1c719b (diff) | |
parent | 857fdc53a0a90c3ba7fcf5b1fb4c7a62ae03cf82 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
x86/pci: insert ioapic resource before assigning unassigned resources
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/apic/io_apic.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c index 90b5e6efa938..2284a4812b68 100644 --- a/arch/x86/kernel/apic/io_apic.c +++ b/arch/x86/kernel/apic/io_apic.c | |||
@@ -4181,28 +4181,20 @@ fake_ioapic_page: | |||
4181 | } | 4181 | } |
4182 | } | 4182 | } |
4183 | 4183 | ||
4184 | static int __init ioapic_insert_resources(void) | 4184 | void __init ioapic_insert_resources(void) |
4185 | { | 4185 | { |
4186 | int i; | 4186 | int i; |
4187 | struct resource *r = ioapic_resources; | 4187 | struct resource *r = ioapic_resources; |
4188 | 4188 | ||
4189 | if (!r) { | 4189 | if (!r) { |
4190 | if (nr_ioapics > 0) { | 4190 | if (nr_ioapics > 0) |
4191 | printk(KERN_ERR | 4191 | printk(KERN_ERR |
4192 | "IO APIC resources couldn't be allocated.\n"); | 4192 | "IO APIC resources couldn't be allocated.\n"); |
4193 | return -1; | 4193 | return; |
4194 | } | ||
4195 | return 0; | ||
4196 | } | 4194 | } |
4197 | 4195 | ||
4198 | for (i = 0; i < nr_ioapics; i++) { | 4196 | for (i = 0; i < nr_ioapics; i++) { |
4199 | insert_resource(&iomem_resource, r); | 4197 | insert_resource(&iomem_resource, r); |
4200 | r++; | 4198 | r++; |
4201 | } | 4199 | } |
4202 | |||
4203 | return 0; | ||
4204 | } | 4200 | } |
4205 | |||
4206 | /* Insert the IO APIC resources after PCI initialization has occured to handle | ||
4207 | * IO APICS that are mapped in on a BAR in PCI space. */ | ||
4208 | late_initcall(ioapic_insert_resources); | ||