Skip to content

Commit

Permalink
x86_64: don't need set default res if only have one root bus
Browse files Browse the repository at this point in the history
if there's only one root bus there's no need to split resources.

This patch fixes the issue described at:

  http://lkml.org/lkml/2008/4/10/304

Reported-and-bisected-by: Rafael J. Wysocki <rjw@sisk.pl>
Tested-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Apr 26, 2008
1 parent 6e184f2 commit 4cf1946
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/pci/k8-bus_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ void set_pci_bus_resources_arch_default(struct pci_bus *b)
int j;
struct pci_root_info *info;

if (!pci_root_num)
/* if only one root bus, don't need to anything */
if (pci_root_num < 2)
return;

for (i = 0; i < pci_root_num; i++) {
Expand Down

0 comments on commit 4cf1946

Please sign in to comment.