pm: use GFP_ATOMIC when pm core call this function

We shouldn't sleep in atomic sections.

Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
This commit is contained in:
Scott Jiang 2013-09-16 00:53:09 -04:00 committed by Steven Miao
parent eb06c06494
commit aefefe9211
1 changed files with 1 additions and 1 deletions

View File

@ -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");