Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10874
b: refs/heads/master
c: 1be7d99
h: refs/heads/master
v: v3
  • Loading branch information
Bob Picco authored and Tony Luck committed Oct 4, 2005
1 parent 4c71487 commit 3692c2b
Show file tree
Hide file tree
Showing 6 changed files with 34 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: c678796cab4b5288ad578802a54cb1480ae20a08
refs/heads/master: 1be7d9935b9c7fb9bd5964bfaf3ac543381277db
2 changes: 1 addition & 1 deletion trunk/include/asm-ia64/meminit.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ extern int filter_rsvd_memory (unsigned long start, unsigned long end, void *arg
#define GRANULEROUNDUP(n) (((n)+IA64_GRANULE_SIZE-1) & ~(IA64_GRANULE_SIZE-1))
#define ORDERROUNDDOWN(n) ((n) & ~((PAGE_SIZE<<MAX_ORDER)-1))

#ifdef CONFIG_DISCONTIGMEM
#ifdef CONFIG_NUMA
extern void call_pernode_memory (unsigned long start, unsigned long len, void *func);
#else
# define call_pernode_memory(start, len, func) (*func)(start, len, 0)
Expand Down
10 changes: 7 additions & 3 deletions trunk/include/asm-ia64/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <asm/page.h>
#include <asm/meminit.h>

#ifdef CONFIG_DISCONTIGMEM
#ifdef CONFIG_NUMA

static inline int pfn_to_nid(unsigned long pfn)
{
Expand All @@ -31,6 +31,10 @@ static inline int pfn_to_nid(unsigned long pfn)
#endif
}

#ifdef CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID
extern int early_pfn_to_nid(unsigned long pfn);
#endif

#ifdef CONFIG_IA64_DIG /* DIG systems are small */
# define MAX_PHYSNODE_ID 8
# define NR_NODE_MEMBLKS (MAX_NUMNODES * 8)
Expand All @@ -39,8 +43,8 @@ static inline int pfn_to_nid(unsigned long pfn)
# define NR_NODE_MEMBLKS (MAX_NUMNODES * 4)
#endif

#else /* CONFIG_DISCONTIGMEM */
#else /* CONFIG_NUMA */
# define NR_NODE_MEMBLKS (MAX_NUMNODES * 4)
#endif /* CONFIG_DISCONTIGMEM */
#endif /* CONFIG_NUMA */

#endif /* _ASM_IA64_MMZONE_H */
4 changes: 2 additions & 2 deletions trunk/include/asm-ia64/nodedata.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <asm/percpu.h>
#include <asm/mmzone.h>

#ifdef CONFIG_DISCONTIGMEM
#ifdef CONFIG_NUMA

/*
* Node Data. One of these structures is located on each node of a NUMA system.
Expand Down Expand Up @@ -47,6 +47,6 @@ struct ia64_node_data {
*/
#define NODE_DATA(nid) (local_node_data->pg_data_ptrs[nid])

#endif /* CONFIG_DISCONTIGMEM */
#endif /* CONFIG_NUMA */

#endif /* _ASM_IA64_NODEDATA_H */
6 changes: 3 additions & 3 deletions trunk/include/asm-ia64/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ do { \

#ifdef CONFIG_VIRTUAL_MEM_MAP
extern int ia64_pfn_valid (unsigned long pfn);
#else
#elif defined(CONFIG_FLATMEM)
# define ia64_pfn_valid(pfn) 1
#endif

#ifndef CONFIG_DISCONTIGMEM
#ifdef CONFIG_FLATMEM
# define pfn_valid(pfn) (((pfn) < max_mapnr) && ia64_pfn_valid(pfn))
# define page_to_pfn(page) ((unsigned long) (page - mem_map))
# define pfn_to_page(pfn) (mem_map + (pfn))
#else
#elif defined(CONFIG_DISCONTIGMEM)
extern struct page *vmem_map;
extern unsigned long max_low_pfn;
# define pfn_valid(pfn) (((pfn) < max_low_pfn) && ia64_pfn_valid(pfn))
Expand Down
20 changes: 20 additions & 0 deletions trunk/include/asm-ia64/sparsemem.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#ifndef _ASM_IA64_SPARSEMEM_H
#define _ASM_IA64_SPARSEMEM_H

#ifdef CONFIG_SPARSEMEM
/*
* SECTION_SIZE_BITS 2^N: how big each section will be
* MAX_PHYSMEM_BITS 2^N: how much memory we can have in that space
*/

#define SECTION_SIZE_BITS (30)
#define MAX_PHYSMEM_BITS (50)
#ifdef CONFIG_FORCE_MAX_ZONEORDER
#if ((CONFIG_FORCE_MAX_ZONEORDER - 1 + PAGE_SHIFT) > SECTION_SIZE_BITS)
#undef SECTION_SIZE_BITS
#define SECTION_SIZE_BITS (CONFIG_FORCE_MAX_ZONEORDER - 1 + PAGE_SHIFT)
#endif
#endif

#endif /* CONFIG_SPARSEMEM */
#endif /* _ASM_IA64_SPARSEMEM_H */

0 comments on commit 3692c2b

Please sign in to comment.