Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56519
b: refs/heads/master
c: f363d16
h: refs/heads/master
i:
  56517: 6213b61
  56515: a8ed226
  56511: 6169015
v: v3
  • Loading branch information
Aaron Durbin authored and Linus Torvalds committed May 17, 2007
1 parent 811d936 commit a383b4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 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: 0aa817f078b655d0ae36669169d73a5c8a388016
refs/heads/master: f363d16fbb9374c0bd7f2757d412c287169094c9
8 changes: 4 additions & 4 deletions trunk/drivers/acpi/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ static nodemask_t nodes_found_map = NODE_MASK_NONE;
#define NID_INVAL -1

/* maps to convert between proximity domain and logical node ID */
int __cpuinitdata pxm_to_node_map[MAX_PXM_DOMAINS]
static int pxm_to_node_map[MAX_PXM_DOMAINS]
= { [0 ... MAX_PXM_DOMAINS - 1] = NID_INVAL };
int __cpuinitdata node_to_pxm_map[MAX_NUMNODES]
static int node_to_pxm_map[MAX_NUMNODES]
= { [0 ... MAX_NUMNODES - 1] = PXM_INVAL };

int __cpuinit pxm_to_node(int pxm)
int pxm_to_node(int pxm)
{
if (pxm < 0)
return NID_INVAL;
return pxm_to_node_map[pxm];
}

int __cpuinit node_to_pxm(int node)
int node_to_pxm(int node)
{
if (node < 0)
return PXM_INVAL;
Expand Down
7 changes: 2 additions & 5 deletions trunk/include/acpi/acpi_numa.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@
#define MAX_PXM_DOMAINS (256) /* Old pxm spec is defined 8 bit */
#endif

extern int __cpuinitdata pxm_to_node_map[MAX_PXM_DOMAINS];
extern int __cpuinitdata node_to_pxm_map[MAX_NUMNODES];

extern int __cpuinit pxm_to_node(int);
extern int __cpuinit node_to_pxm(int);
extern int pxm_to_node(int);
extern int node_to_pxm(int);
extern int __cpuinit acpi_map_pxm_to_node(int);
extern void __cpuinit acpi_unmap_pxm_to_node(int);

Expand Down

0 comments on commit a383b4e

Please sign in to comment.