aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorOleg Matcovschi <oleg.matcovschi@ti.com>2012-09-25 09:38:47 -0700
committerZiyann <jaraidaniel@gmail.com>2014-10-01 13:01:02 +0200
commited95b60388a42bdef3b0293c60dc1e79d89faece (patch)
treecea33bd75fa2bf91faa032dc991bf07f160aaf8b /drivers/misc
parent50dbfc2c3d18ba0fd4492e0d92c9902d3aedf64d (diff)
downloadkernel_samsung_tuna-ed95b60388a42bdef3b0293c60dc1e79d89faece.zip
kernel_samsung_tuna-ed95b60388a42bdef3b0293c60dc1e79d89faece.tar.gz
kernel_samsung_tuna-ed95b60388a42bdef3b0293c60dc1e79d89faece.tar.bz2
gcx: Use GFP_ATOMIC flag for opp_freqs table.
Use GFP_ATOMIC instead of GFP_KERNEL to avoid potential blocking. Change-Id: Id405a2aa609560b849adf0e096970d0251cfd140 Signed-off-by: Oleg Matcovschi <oleg.matcovschi@ti.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/gcx/gccore/gcmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/gcx/gccore/gcmain.c b/drivers/misc/gcx/gccore/gcmain.c
index d4aca5a..91ec560 100644
--- a/drivers/misc/gcx/gccore/gcmain.c
+++ b/drivers/misc/gcx/gccore/gcmain.c
@@ -840,7 +840,7 @@ static int gc_probe_opp(struct platform_device *pdev)
}
size = gccorecontext->opp_count * sizeof(unsigned long);
- gccorecontext->opp_freqs = kzalloc(size, GFP_KERNEL);
+ gccorecontext->opp_freqs = kzalloc(size, GFP_ATOMIC);
if (!gccorecontext->opp_freqs) {
gccorecontext->opp_count = 0;
goto done;