]> Pileus Git - ~andy/linux/commitdiff
parisc: always detect multiple physical ranges
authorJohn David Anglin <dave.anglin@bell.net>
Sat, 2 Feb 2013 23:42:25 +0000 (23:42 +0000)
committerHelge Deller <deller@gmx.de>
Wed, 20 Feb 2013 21:51:01 +0000 (22:51 +0100)
This patch unbreaks the current logic in that way, that even if
CONFIG_DISCONTIGMEM isn't set, the user may be informed, that he should turn on
CONFIG_DISCONTIGMEM for his machine.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/mmzone.h

index e67eb9c3d1bfb47769d2de11e3532a22250b308d..31835b998a5a4ea00d75c27c2f2ee3fe32bbcab5 100644 (file)
@@ -1,9 +1,10 @@
 #ifndef _PARISC_MMZONE_H
 #define _PARISC_MMZONE_H
 
+#define MAX_PHYSMEM_RANGES 8 /* Fix the size for now (current known max is 3) */
+
 #ifdef CONFIG_DISCONTIGMEM
 
-#define MAX_PHYSMEM_RANGES 8 /* Fix the size for now (current known max is 3) */
 extern int npmem_ranges;
 
 struct node_map_data {
@@ -60,7 +61,5 @@ static inline int pfn_valid(int pfn)
        return 0;
 }
 
-#else /* !CONFIG_DISCONTIGMEM */
-#define MAX_PHYSMEM_RANGES     1 
 #endif
 #endif /* _PARISC_MMZONE_H */