[PORT FROM R2] atomisp: fix alloc pages block issue in driver.
authorziyux.jiang <ziyux.jiang@intel.com>
Tue, 29 Nov 2011 11:26:53 +0000 (19:26 +0800)
committerbuildbot <buildbot@intel.com>
Mon, 19 Dec 2011 13:37:29 +0000 (05:37 -0800)
commitb9029d775650b6e7c40051d6e3ae7bdf92bd1535
tree44bf45e0fe631f96957c3d2b4399799e59320703
parentc38ecc4c41c5669f167c6e0f12b793fca1b080e1
[PORT FROM R2] atomisp: fix alloc pages block issue in driver.

BZ: 17272

when there are not enough memory in kernel, allocation pages maybe fails and
then sleep, so system will block in kernel and can not exit. to avoid this
case, we modify allocation pages flag to GFP_NOWAIT(not will sleep when
allocation). and modify allocation mechanism.

Change-Id: If5362583197a650bcb6d05b1a811d2a18967468c
Orig-Change-Id: I7e687b1a9107ebeedb71f6ce84a25b19169520af
Signed-off-by: ziyux.jiang <ziyux.jiang@intel.com>
Reviewed-on: http://android.intel.com:8080/25504
Reviewed-by: Zheng, ZixiangX <zixiangx.zheng@intel.com>
Reviewed-by: Hu, Gang A <gang.a.hu@intel.com>
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Cohen, David A <david.a.cohen@intel.com>
Tested-by: Ilvonen, Ville <ville.ilvonen@intel.com>
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
Reviewed-on: http://android.intel.com:8080/28049
Reviewed-by: Tuominen, TeemuX <teemux.tuominen@intel.com>
Reviewed-by: Koski, Anttu <anttu.koski@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
drivers/media/video/atomisp/hmm/hmm_bo.c