projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb06c06
)
pm: use GFP_ATOMIC when pm core call this function
author
Scott Jiang
<scott.jiang.linux@gmail.com>
Mon, 16 Sep 2013 04:53:09 +0000
(
00:53
-0400)
committer
Steven Miao
<realmz6@gmail.com>
Fri, 15 Nov 2013 10:14:42 +0000
(18:14 +0800)
We shouldn't sleep in atomic sections.
Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
arch/blackfin/mach-common/pm.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/mach-common/pm.c
b/arch/blackfin/mach-common/pm.c
index 675ffb148fbc80395501a40af4c9fa826c37059f..4319568029fb2799ee51b9b83621bc9f2bae1bea 100644
(file)
--- 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");