提交 aefefe92 编写于 作者: S Scott Jiang 提交者: Steven Miao

pm: use GFP_ATOMIC when pm core call this function

We shouldn't sleep in atomic sections.
Signed-off-by: NScott Jiang <scott.jiang.linux@gmail.com>
上级 eb06c064
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册