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:
be1577e
)
Blackfin: use atomic kmalloc in L1 alloc so it too can be atomic
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 11 May 2010 04:43:19 +0000
(
04:43
+0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Sat, 22 May 2010 18:19:12 +0000
(14:19 -0400)
Some drivers allocate L1 SRAM in atomic contexts, so make sure these
functions also use GFP_ATOMIC to avoid BUG()'s.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mm/sram-alloc.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/mm/sram-alloc.c
b/arch/blackfin/mm/sram-alloc.c
index 49b2ff2c8b74bee191df47682bcbae227b5beac6..627e04b5ba9a8979be2149ecff27e52f6bb05458 100644
(file)
--- a/
arch/blackfin/mm/sram-alloc.c
+++ b/
arch/blackfin/mm/sram-alloc.c
@@
-256,7
+256,8
@@
static void *_sram_alloc(size_t size, struct sram_piece *pfree_head,
plast->next = pslot->next;
pavail = pslot;
} else {
- pavail = kmem_cache_alloc(sram_piece_cache, GFP_KERNEL);
+ /* use atomic so our L1 allocator can be used atomically */
+ pavail = kmem_cache_alloc(sram_piece_cache, GFP_ATOMIC);
if (!pavail)
return NULL;