aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm
diff options
context:
space:
mode:
authorStepan Moskovchenko <stepanm@codeaurora.org>2010-12-10 17:12:03 -0500
committerDavid Brown <davidb@codeaurora.org>2010-12-15 17:09:59 -0500
commit294b2dea83ba0a6d6034a7521bc62c317efab17b (patch)
treeb2613c5564ea7dc49f5a33cdb6242fdd40f1fc85 /arch/arm/mach-msm
parentdc6bbc991b0c408daad5df43e5851f1d369e50f7 (diff)
msm: iommu: Use the correct memory allocation flag
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>
Diffstat (limited to 'arch/arm/mach-msm')
-rw-r--r--arch/arm/mach-msm/iommu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/iommu.c b/arch/arm/mach-msm/iommu.c
index f65101742a74..e2d58e4cb0d7 100644
--- a/arch/arm/mach-msm/iommu.c
+++ b/arch/arm/mach-msm/iommu.c
@@ -386,7 +386,7 @@ static int msm_iommu_map(struct iommu_domain *domain, unsigned long va,
386 /* Need a 2nd level table */ 386 /* Need a 2nd level table */
387 if ((len == SZ_4K || len == SZ_64K) && (*fl_pte) == 0) { 387 if ((len == SZ_4K || len == SZ_64K) && (*fl_pte) == 0) {
388 unsigned long *sl; 388 unsigned long *sl;
389 sl = (unsigned long *) __get_free_pages(GFP_KERNEL, 389 sl = (unsigned long *) __get_free_pages(GFP_ATOMIC,
390 get_order(SZ_4K)); 390 get_order(SZ_4K));
391 391
392 if (!sl) { 392 if (!sl) {