Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245707
b: refs/heads/master
c: 5acd91a
h: refs/heads/master
i:
  245705: 24fd25a
  245703: bf60bf0
v: v3
  • Loading branch information
Tejun Heo committed May 2, 2011
1 parent 7bb30dc commit 25f9550
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 327 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: b0d310801a4c1f95b44357e4ebc22a9903e3bf3d
refs/heads/master: 5acd91ab837c9d066af7345aea6462dc55695db7
2 changes: 0 additions & 2 deletions trunk/arch/x86/include/asm/mmzone_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ extern struct pglist_data *node_data[];
#define NODE_DATA(nid) (node_data[nid])

#include <asm/numaq.h>
/* summit or generic arch */
#include <asm/srat.h>

extern void resume_map_numa_kva(pgd_t *pgd);

Expand Down
39 changes: 0 additions & 39 deletions trunk/arch/x86/include/asm/srat.h

This file was deleted.

5 changes: 1 addition & 4 deletions trunk/arch/x86/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ obj-$(CONFIG_MMIOTRACE_TEST) += testmmiotrace.o

obj-$(CONFIG_NUMA) += numa.o numa_$(BITS).o
obj-$(CONFIG_AMD_NUMA) += amdtopology_64.o
ifeq ($(CONFIG_ACPI_NUMA),y)
obj-$(CONFIG_X86_64) += srat.o
obj-$(CONFIG_X86_32) += srat_32.o
endif
obj-$(CONFIG_ACPI_NUMA) += srat.o
obj-$(CONFIG_NUMA_EMU) += numa_emulation.o

obj-$(CONFIG_HAVE_MEMBLOCK) += memblock.o
Expand Down
23 changes: 23 additions & 0 deletions trunk/arch/x86/mm/numa_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,29 @@ static __init void init_alloc_remap(int nid)
nid, node_pa, node_pa + size, remap_va, remap_va + size);
}

static int get_memcfg_from_srat(void)
{
#ifdef CONFIG_ACPI_NUMA
int nid;

if (numa_off)
return 0;

if (x86_acpi_numa_init() < 0) {
nodes_clear(numa_nodes_parsed);
remove_all_active_ranges();
return 0;
}

for_each_node_mask(nid, numa_nodes_parsed)
node_set_online(nid);
sort_node_map();
return 1;
#else
return 0;
#endif
}

static void get_memcfg_numa(void)
{
if (get_memcfg_numaq())
Expand Down
281 changes: 0 additions & 281 deletions trunk/arch/x86/mm/srat_32.c

This file was deleted.

0 comments on commit 25f9550

Please sign in to comment.