author | Mike Frysinger
<vapier@gentoo.org> 2010-05-11 04:43:19 UTC |
committer | Mike Frysinger
<vapier@gentoo.org> 2010-05-22 18:19:12 UTC |
parent | be1577e3787536290cc17afaeb2cd58bbcc7ed6c |
arch/blackfin/mm/sram-alloc.c | +2 | -1 |
diff --git a/arch/blackfin/mm/sram-alloc.c b/arch/blackfin/mm/sram-alloc.c index 49b2ff2c8b7..627e04b5ba9 100644 --- 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;