From: Martin Schwidefsky Date: Thu, 16 Apr 2015 12:47:33 +0000 (+0200) Subject: kexec: allocate the kexec control page with KEXEC_CONTROL_MEMORY_GFP X-Git-Tag: omap-for-v4.2/omap1-v2~57^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e01b5acd88b3f3108d8c4ce44e3205d67437202;p=pandora-kernel.git kexec: allocate the kexec control page with KEXEC_CONTROL_MEMORY_GFP Introduce KEXEC_CONTROL_MEMORY_GFP to allow the architecture code to override the gfp flags of the allocation for the kexec control page. The loop in kimage_alloc_normal_control_pages allocates pages with GFP_KERNEL until a page is found that happens to have an address smaller than the KEXEC_CONTROL_MEMORY_LIMIT. On systems with a large memory size but a small KEXEC_CONTROL_MEMORY_LIMIT the loop will keep allocating memory until the oom killer steps in. Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed