Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245710
b: refs/heads/master
c: 744baba
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed May 2, 2011
1 parent c0e4aa7 commit ee291ec
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 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: a4106eae650a4d5d30fcdd36d998edfa5ccb0ec4
refs/heads/master: 744baba0c4072b04664952a89292e4708eaf949a
6 changes: 3 additions & 3 deletions trunk/arch/x86/include/asm/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@

#define MAX_DMA_CHANNELS 8

/* 16MB ISA DMA zone */
#define MAX_DMA_PFN ((16 * 1024 * 1024) >> PAGE_SHIFT)

#ifdef CONFIG_X86_32

/* The maximum address that we can perform a DMA transfer to on this platform */
#define MAX_DMA_ADDRESS (PAGE_OFFSET + 0x1000000)

#else

/* 16MB ISA DMA zone */
#define MAX_DMA_PFN ((16 * 1024 * 1024) >> PAGE_SHIFT)

/* 4GB broken PCI/AGP hardware bus master zone */
#define MAX_DMA32_PFN ((4UL * 1024 * 1024 * 1024) >> PAGE_SHIFT)

Expand Down
10 changes: 4 additions & 6 deletions trunk/arch/x86/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
int __initdata numa_off;
nodemask_t numa_nodes_parsed __initdata;

#ifdef CONFIG_X86_64
struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
EXPORT_SYMBOL(node_data);

Expand All @@ -35,7 +34,6 @@ __initdata

static int numa_distance_cnt;
static u8 *numa_distance;
#endif

static __init int numa_setup(char *opt)
{
Expand Down Expand Up @@ -134,7 +132,6 @@ void __init setup_node_to_cpumask_map(void)
pr_debug("Node to cpumask map for %d nodes\n", nr_node_ids);
}

#ifdef CONFIG_X86_64
static int __init numa_add_memblk_to(int nid, u64 start, u64 end,
struct numa_meminfo *mi)
{
Expand Down Expand Up @@ -176,6 +173,7 @@ void __init numa_remove_memblk_from(int idx, struct numa_meminfo *mi)
(mi->nr_blks - idx) * sizeof(mi->blk[0]));
}

#ifdef CONFIG_X86_64
/**
* numa_add_memblk - Add one numa_memblk to numa_meminfo
* @nid: NUMA node ID of the new memblk
Expand All @@ -191,6 +189,7 @@ int __init numa_add_memblk(int nid, u64 start, u64 end)
{
return numa_add_memblk_to(nid, start, end, &numa_meminfo);
}
#endif

/* Initialize bootmem allocator for a node */
static void __init
Expand Down Expand Up @@ -402,6 +401,7 @@ static int __init numa_alloc_distance(void)
return 0;
}

#ifdef CONFIG_X86_64
/**
* numa_set_distance - Set NUMA distance from one NUMA to another
* @from: the 'from' node to set distance
Expand Down Expand Up @@ -440,6 +440,7 @@ void __init numa_set_distance(int from, int to, int distance)

numa_distance[from * numa_distance_cnt + to] = distance;
}
#endif

int __node_distance(int from, int to)
{
Expand Down Expand Up @@ -518,7 +519,6 @@ static int __init numa_register_memblks(struct numa_meminfo *mi)

return 0;
}
#endif

/*
* There are unfortunately some poorly designed mainboards around that
Expand All @@ -542,7 +542,6 @@ void __init numa_init_array(void)
}
}

#ifdef CONFIG_X86_64
static int __init numa_init(int (*init_func)(void))
{
int i;
Expand Down Expand Up @@ -627,7 +626,6 @@ void __init x86_numa_init(void)

numa_init(dummy_numa_init);
}
#endif

static __init int find_near_online_node(int node)
{
Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/x86/mm/numa_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
#include <asm/bios_ebda.h>
#include <asm/proto.h>

struct pglist_data *node_data[MAX_NUMNODES] __read_mostly;
EXPORT_SYMBOL(node_data);

/*
* numa interface - we expect the numa architecture specific code to have
* populated the following initialisation.
Expand Down

0 comments on commit ee291ec

Please sign in to comment.