Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13687
b: refs/heads/master
c: 82dd26a
h: refs/heads/master
i:
  13685: 45d73e1
  13683: a87d82a
  13679: 846c53a
v: v3
  • Loading branch information
Mike Kravetz authored and Paul Mackerras committed Nov 8, 2005
1 parent 17fb3c8 commit 28a6f55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dd7ccbd3eed52a42dc8bba57717dac3ece39b58e
refs/heads/master: 82dd26a971848efafc6c8f12803ae012d268d2eb
8 changes: 8 additions & 0 deletions trunk/include/asm-ppc64/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ extern int numa_cpu_lookup_table[];
extern char *numa_memory_lookup_table;
extern cpumask_t numa_cpumask_lookup_table[];
extern int nr_cpus_in_node[];
#ifdef CONFIG_MEMORY_HOTPLUG
extern unsigned long max_pfn;
#endif

/* 16MB regions */
#define MEMORY_INCREMENT_SHIFT 24
Expand All @@ -45,6 +48,11 @@ static inline int pa_to_nid(unsigned long pa)
{
int nid;

#ifdef CONFIG_MEMORY_HOTPLUG
/* kludge hot added sections default to node 0 */
if (pa >= (max_pfn << PAGE_SHIFT))
return 0;
#endif
nid = numa_memory_lookup_table[pa >> MEMORY_INCREMENT_SHIFT];

#ifdef DEBUG_NUMA
Expand Down

0 comments on commit 28a6f55

Please sign in to comment.