lkml.org 
[lkml]   [2006]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/8] ppc64 - Specify amount of kernel memory at boot time
Date

This patch adds the kernelcore= parameter for ppc64.

Signed-off-by: Mel Gorman <mel@csn.ul.ie>
diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/powerpc/kernel/prom.c linux-2.6.17-rc3-mm1-zonesizing-104_ppc64coremem/arch/powerpc/kernel/prom.c
--- linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/powerpc/kernel/prom.c 2006-05-03 09:41:31.000000000 +0100
+++ linux-2.6.17-rc3-mm1-zonesizing-104_ppc64coremem/arch/powerpc/kernel/prom.c 2006-05-03 09:48:06.000000000 +0100
@@ -1064,6 +1064,15 @@ static int __init early_init_dt_scan_cho
}
}

+ /* Check if ZONE_EASYRCLM should be populated */
+ if (strstr(cmd_line, "kernelcore=")) {
+ unsigned long core_pages;
+ char *opt = strstr(cmd_line, "kernelcore=");
+ opt += 11;
+ core_pages = memparse(opt, &opt) >> PAGE_SHIFT;
+ set_required_kernelcore(core_pages);
+ }
+
/* break now */
return 1;
}
diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/ppc/mm/init.c linux-2.6.17-rc3-mm1-zonesizing-104_ppc64coremem/arch/ppc/mm/init.c
--- linux-2.6.17-rc3-mm1-zonesizing-103_x86coremem/arch/ppc/mm/init.c 2006-05-03 09:42:16.000000000 +0100
+++ linux-2.6.17-rc3-mm1-zonesizing-104_ppc64coremem/arch/ppc/mm/init.c 2006-05-03 09:48:06.000000000 +0100
@@ -213,6 +213,15 @@ void MMU_setup(void)
}
__max_memory = maxmem;
}
+
+ /* Check if ZONE_EASYRCLM should be populated */
+ if (strstr(cmd_line, "kernelcore=")) {
+ unsigned long core_pages;
+ char *opt = strstr(cmd_line, "kernelcore=");
+ opt += 11;
+ core_pages = memparse(opt, &opt) >> PAGE_SHIFT;
+ set_required_kernelcore(core_pages);
+ }
}

/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-05-05 19:38    [W:0.031 / U:1.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site