Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100106
b: refs/heads/master
c: d199a04
h: refs/heads/master
v: v3
  • Loading branch information
Robert Richter authored and Ingo Molnar committed Jul 9, 2008
1 parent 31f8d07 commit fe93fcc
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42a4b427a8d7bff95d9622ffa2365cb56da8e7d6
refs/heads/master: d199a0482791bdf2f052081aa212d8c83ccef88a
1 change: 0 additions & 1 deletion trunk/arch/x86/pci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pci-y := fixup.o
# legacy/irq.o
pci-$(CONFIG_ACPI) += acpi.o
pci-y += legacy.o irq.o
pci-$(CONFIG_NUMA) += mp_bus_to_node.o

# Careful: VISWS overrule the pci-y above. The colons are
# therefor correct. This needs a proper fix by distangling the code.
Expand Down
32 changes: 29 additions & 3 deletions trunk/arch/x86/pci/amd_bus.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/topology.h>
#include "pci.h"

#ifdef CONFIG_X86_64

#include <asm/pci-direct.h>
#include <asm/mpspec.h>
#include <linux/cpumask.h>
#include <linux/topology.h>
#endif

/*
* This discovers the pcibus <-> node mapping on AMD K8.
Expand All @@ -18,6 +18,8 @@

#define BUS_NR 256

#ifdef CONFIG_X86_64

static int mp_bus_to_node[BUS_NR];

void set_mp_bus_to_node(int busnum, int node)
Expand Down Expand Up @@ -45,7 +47,31 @@ int get_mp_bus_to_node(int busnum)
return node;
}

#endif
#else /* CONFIG_X86_32 */

static unsigned char mp_bus_to_node[BUS_NR];

void set_mp_bus_to_node(int busnum, int node)
{
if (busnum >= 0 && busnum < BUS_NR)
mp_bus_to_node[busnum] = (unsigned char) node;
}

int get_mp_bus_to_node(int busnum)
{
int node;

if (busnum < 0 || busnum > (BUS_NR - 1))
return 0;
node = mp_bus_to_node[busnum];
return node;
}

#endif /* CONFIG_X86_32 */

#endif /* CONFIG_NUMA */

#ifdef CONFIG_X86_64

/*
* sub bus (transparent) will use entres from 3 to store extra from root,
Expand Down
23 changes: 0 additions & 23 deletions trunk/arch/x86/pci/mp_bus_to_node.c

This file was deleted.

0 comments on commit fe93fcc

Please sign in to comment.