]> err.no Git - linux-2.6/blobdiff - arch/powerpc/mm/fsl_booke_mmu.c
[POWERPC] Cleanup SMT thread handling
[linux-2.6] / arch / powerpc / mm / fsl_booke_mmu.c
index 5d581bb3aa1249fa8826fe16a648f818c3f33cae..17139daeaff461bbdd4af62db6dc0fa7d052da68 100644 (file)
@@ -14,7 +14,6 @@
  *  Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au)
  *  and Cort Dougan (PReP) (cort@cs.nmt.edu)
  *    Copyright (C) 1996 Paul Mackerras
- *  Amiga/APUS changes by Jesper Skov (jskov@cygnus.co.uk).
  *
  *  Derived from "arch/i386/mm/init.c"
  *    Copyright (C) 1991, 1992, 1993, 1994  Linus Torvalds
@@ -26,7 +25,6 @@
  *
  */
 
-#include <linux/config.h>
 #include <linux/signal.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
@@ -61,6 +59,7 @@ unsigned int num_tlbcam_entries;
 static unsigned long __cam0, __cam1, __cam2;
 extern unsigned long total_lowmem;
 extern unsigned long __max_low_memory;
+extern unsigned long __initial_memory_limit;
 #define MAX_LOW_MEM    CONFIG_LOWMEM_SIZE
 
 #define NUM_TLBCAMS    (16)
@@ -234,4 +233,5 @@ adjust_total_lowmem(void)
                        __cam0 >> 20, __cam1 >> 20, __cam2 >> 20,
                        (total_lowmem - __cam0 - __cam1 - __cam2) >> 20);
        __max_low_memory = max_low_mem = __cam0 + __cam1 + __cam2;
+       __initial_memory_limit = __max_low_memory;
 }