From: Scott Jiang Date: Mon, 16 Sep 2013 04:53:09 +0000 (-0400) Subject: pm: use GFP_ATOMIC when pm core call this function X-Git-Tag: v3.13-rc1~70^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aefefe92116b776203f95f3249ae61b94f73f170;p=kernel%2Fkernel-generic.git pm: use GFP_ATOMIC when pm core call this function We shouldn't sleep in atomic sections. Signed-off-by: Scott Jiang --- diff --git a/arch/blackfin/mach-common/pm.c b/arch/blackfin/mach-common/pm.c index 675ffb1..4319568 100644 --- a/arch/blackfin/mach-common/pm.c +++ b/arch/blackfin/mach-common/pm.c @@ -145,7 +145,7 @@ int bfin_pm_suspend_mem_enter(void) unsigned char *memptr = kmalloc(L1_CODE_LENGTH + L1_DATA_A_LENGTH + L1_DATA_B_LENGTH + L1_SCRATCH_LENGTH, - GFP_KERNEL); + GFP_ATOMIC); if (memptr == NULL) { panic("bf53x_suspend_l1_mem malloc failed");