Skip to content

Commit

Permalink
msm: iommu: Use the correct memory allocation flag
Browse files Browse the repository at this point in the history
Change msm_iommu_map to use GFP_ATOMIC instead of
GFP_KERNEL due to the fact that the call occurs within
a spinlock-protected region.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
  • Loading branch information
Stepan Moskovchenko authored and David Brown committed Dec 15, 2010
1 parent dc6bbc9 commit 294b2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-msm/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ static int msm_iommu_map(struct iommu_domain *domain, unsigned long va,
/* Need a 2nd level table */
if ((len == SZ_4K || len == SZ_64K) && (*fl_pte) == 0) {
unsigned long *sl;
sl = (unsigned long *) __get_free_pages(GFP_KERNEL,
sl = (unsigned long *) __get_free_pages(GFP_ATOMIC,
get_order(SZ_4K));

if (!sl) {
Expand Down

0 comments on commit 294b2de

Please sign in to comment.