lkml.org 
[lkml]   [2008]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] x86_64: don't need set default res if only have one root bus
Date
On Saturday, 12 of April 2008, Yinghai Lu wrote:
> only one root bus, don't need to split that root resources.

This patch fixes the issue described at
http://lkml.org/lkml/2008/4/10/304 and in the following thread for me.

> Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

Tested-by: Rafael J. Wysocki <rjw@sisk.pl>

> diff --git a/arch/x86/pci/k8-bus_64.c b/arch/x86/pci/k8-bus_64.c
> index 7ed7f51..c433982 100644
> --- a/arch/x86/pci/k8-bus_64.c
> +++ b/arch/x86/pci/k8-bus_64.c
> @@ -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++) {
>
>

Thanks,
Rafael


\
 
 \ /
  Last update: 2008-04-12 00:57    [W:0.040 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site