projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] i386/x86-64: Fix NMI watchdog suspend/resume
[powerpc.git]
/
include
/
asm-x86_64
/
mmzone.h
diff --git
a/include/asm-x86_64/mmzone.h
b/include/asm-x86_64/mmzone.h
index
6b18cd8
..
c38ebdf
100644
(file)
--- a/
include/asm-x86_64/mmzone.h
+++ b/
include/asm-x86_64/mmzone.h
@@
-4,7
+4,6
@@
#ifndef _ASM_X86_64_MMZONE_H
#define _ASM_X86_64_MMZONE_H 1
#ifndef _ASM_X86_64_MMZONE_H
#define _ASM_X86_64_MMZONE_H 1
-#include <linux/config.h>
#ifdef CONFIG_NUMA
#ifdef CONFIG_NUMA
@@
-12,7
+11,8
@@
#include <asm/smp.h>
#include <asm/smp.h>
-#define NODEMAPSIZE 0xfff
+/* Should really switch to dynamic allocation at some point */
+#define NODEMAPSIZE 0x4fff
/* Simple perfect hash to map physical addresses to node numbers */
struct memnode {
/* Simple perfect hash to map physical addresses to node numbers */
struct memnode {
@@
-42,7
+42,6
@@
static inline __attribute__((pure)) int phys_to_nid(unsigned long addr)
#ifdef CONFIG_DISCONTIGMEM
#define pfn_to_nid(pfn) phys_to_nid((unsigned long)(pfn) << PAGE_SHIFT)
#ifdef CONFIG_DISCONTIGMEM
#define pfn_to_nid(pfn) phys_to_nid((unsigned long)(pfn) << PAGE_SHIFT)
-#define kvaddr_to_nid(kaddr) phys_to_nid(__pa(kaddr))
extern int pfn_valid(unsigned long pfn);
#endif
extern int pfn_valid(unsigned long pfn);
#endif