Commit 4cf19463 authored by Yinghai Lu's avatar Yinghai Lu Committed by Ingo Molnar

x86_64: don't need set default res if only have one root bus

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/304Reported-and-bisected-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Tested-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: default avatarYinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 6e184f29
......@@ -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++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment