diff options
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/Kconfig | 2 | ||||
-rw-r--r-- | arch/mips/configs/ip27_defconfig | 2 | ||||
-rw-r--r-- | arch/mips/sgi-ip27/ip27-memory.c | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index ab9944693f1f..94f5a8eb2c22 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -492,7 +492,7 @@ config SGI_SN0_N_MODE | |||
492 | which allows for more memory. Your system is most probably | 492 | which allows for more memory. Your system is most probably |
493 | running in M-Mode, so you should say N here. | 493 | running in M-Mode, so you should say N here. |
494 | 494 | ||
495 | config DISCONTIGMEM | 495 | config ARCH_DISCONTIGMEM_ENABLE |
496 | bool | 496 | bool |
497 | default y if SGI_IP27 | 497 | default y if SGI_IP27 |
498 | help | 498 | help |
diff --git a/arch/mips/configs/ip27_defconfig b/arch/mips/configs/ip27_defconfig index 13472292d0ec..b5bab3a42fc4 100644 --- a/arch/mips/configs/ip27_defconfig +++ b/arch/mips/configs/ip27_defconfig | |||
@@ -82,7 +82,7 @@ CONFIG_STOP_MACHINE=y | |||
82 | # CONFIG_SGI_IP22 is not set | 82 | # CONFIG_SGI_IP22 is not set |
83 | CONFIG_SGI_IP27=y | 83 | CONFIG_SGI_IP27=y |
84 | # CONFIG_SGI_SN0_N_MODE is not set | 84 | # CONFIG_SGI_SN0_N_MODE is not set |
85 | CONFIG_DISCONTIGMEM=y | 85 | CONFIG_ARCH_DISCONTIGMEM_ENABLE=y |
86 | CONFIG_NUMA=y | 86 | CONFIG_NUMA=y |
87 | # CONFIG_MAPPED_KERNEL is not set | 87 | # CONFIG_MAPPED_KERNEL is not set |
88 | # CONFIG_REPLICATE_KTEXT is not set | 88 | # CONFIG_REPLICATE_KTEXT is not set |
diff --git a/arch/mips/sgi-ip27/ip27-memory.c b/arch/mips/sgi-ip27/ip27-memory.c index 0a44a98d7adc..a160d04f7dbe 100644 --- a/arch/mips/sgi-ip27/ip27-memory.c +++ b/arch/mips/sgi-ip27/ip27-memory.c | |||
@@ -549,9 +549,8 @@ void __init mem_init(void) | |||
549 | */ | 549 | */ |
550 | numslots = node_getlastslot(node); | 550 | numslots = node_getlastslot(node); |
551 | for (slot = 1; slot <= numslots; slot++) { | 551 | for (slot = 1; slot <= numslots; slot++) { |
552 | p = NODE_DATA(node)->node_mem_map + | 552 | p = nid_page_nr(node, slot_getbasepfn(node, slot) - |
553 | (slot_getbasepfn(node, slot) - | 553 | slot_getbasepfn(node, 0)); |
554 | slot_getbasepfn(node, 0)); | ||
555 | 554 | ||
556 | /* | 555 | /* |
557 | * Free valid memory in current slot. | 556 | * Free valid memory in current slot. |