summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-06-12 18:02:09 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-06-12 18:02:09 +0000
commit17adfedca60bc231027cde57642647f9bb32b396 (patch)
tree0a88180d1147f6da38c4effddab0f8530a1304d0
parent96680a4e6d55df5988c7b9fae26b459c4e94fb95 (diff)
Add in a build/config option for kernel text replication.
-rw-r--r--arch/mips64/config.in1
-rw-r--r--arch/mips64/defconfig1
-rw-r--r--arch/mips64/defconfig-ip271
-rw-r--r--arch/mips64/sgi-ip27/ip27-klnuma.c3
4 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips64/config.in b/arch/mips64/config.in
index 65d0ce996..098aef1b4 100644
--- a/arch/mips64/config.in
+++ b/arch/mips64/config.in
@@ -18,6 +18,7 @@ if [ "$CONFIG_SGI_IP27" = "y" ]; then
bool ' IP27 N-Mode' CONFIG_SGI_SN0_N_MODE
bool ' Discontiguous Memory Support' CONFIG_DISCONTIGMEM
bool ' Mapped kernel support' CONFIG_MAPPED_KERNEL
+ bool ' Kernel text replication support' CONFIG_REPLICATE_KTEXT
bool ' Multi-Processing support (Experimental)' CONFIG_SMP
#bool ' IP27 XXL' CONFIG_SGI_SN0_XXL
fi
diff --git a/arch/mips64/defconfig b/arch/mips64/defconfig
index 831a6b4ef..9866393fa 100644
--- a/arch/mips64/defconfig
+++ b/arch/mips64/defconfig
@@ -15,6 +15,7 @@ CONFIG_SGI_IP27=y
# CONFIG_SGI_SN0_N_MODE is not set
# CONFIG_DISCONTIGMEM is not set
# CONFIG_MAPPED_KERNEL is not set
+# CONFIG_REPLICATE_KTEXT is not set
# CONFIG_SMP is not set
CONFIG_BOOT_ELF64=y
CONFIG_ARC64=y
diff --git a/arch/mips64/defconfig-ip27 b/arch/mips64/defconfig-ip27
index 831a6b4ef..9866393fa 100644
--- a/arch/mips64/defconfig-ip27
+++ b/arch/mips64/defconfig-ip27
@@ -15,6 +15,7 @@ CONFIG_SGI_IP27=y
# CONFIG_SGI_SN0_N_MODE is not set
# CONFIG_DISCONTIGMEM is not set
# CONFIG_MAPPED_KERNEL is not set
+# CONFIG_REPLICATE_KTEXT is not set
# CONFIG_SMP is not set
CONFIG_BOOT_ELF64=y
CONFIG_ARC64=y
diff --git a/arch/mips64/sgi-ip27/ip27-klnuma.c b/arch/mips64/sgi-ip27/ip27-klnuma.c
index f4baebf78..8e2a6e566 100644
--- a/arch/mips64/sgi-ip27/ip27-klnuma.c
+++ b/arch/mips64/sgi-ip27/ip27-klnuma.c
@@ -37,6 +37,9 @@ void __init setup_replication_mask(int maxnodes)
numa_kernel_replication_ratio = 0;
#ifdef CONFIG_REPLICATE_KTEXT
+#ifndef CONFIG_MAPPED_KERNEL
+#error Kernel replication works with mapped kernel support. No calias support.
+#endif
numa_kernel_replication_ratio = 1;
#endif