fix compile error with CM-10.2

Change-Id: I1d6ce92f79d1d080efba553f1d4e7618c6961ef0
display-legacy: fix gralloc module

Change-Id: I0b596a3193114eedc806905749854f1b60aa7a77

Conflicts:
	libgralloc/gralloc.cpp
fix stupid build error

Change-Id: I7941414dd953f795e7daf300faee0df5cb4b7b35
add missing kernel includes
Merge pull request #1 from ProBean/cm-10.2

add missing kernel includes
Gralloc: fix compilation with QCOM Board Service Package (BSP) enabled

Signed-off-by: Sultanxda <sultanxda@gmail.com>
copybit: Fix type conversion error for GCC 4.7

GCC 4.7 has stricter type conversion rules

Change-Id: I699cfe1ceafb5728fb8e6f34f7b1996d3c812e7e
pmemalloc: fix GCC 4.7 errors

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>

Change-Id: Id5d7bc86780bd716b97257400e15793c29ff4dfb
librgralloc: gralloc_priv.h: Define GRALLOC_USAGE_PRIVATE_SECURE_DISPLAY
Remove PMEM parts
gralloc: Allow legacy devices to use PMEM for ADSP (camera).

Partially bring back PMEM support for legacy devices having proprietary camera
libraries stuck in PMEM. This change allows these devices to continue using
PMEM for the camera, and ION for everything else.

Change-Id: I1afbc7d137b3d49b2ab3e53917b16fd920ea140b

Conflicts:
	libgralloc/Android.mk
	libgralloc/alloc_controller.h
libgralloc: alloc_controller.h: Use smart pointer for PmemAdspAlloc

I have no idea what I'm doing.
pmemalloc: Fix compilation

Thanks to professorpasta on XDA for pointing out why it wasn't compiling.
libgralloc: Add back support for PMEM SMI

Needed for our PMEM video controller and PMEM camera libs.

Signed-off-by: Sultanxda <sultanxda@gmail.com>
Merge pull request #1 from Team-Hydra/cm-11.0

Merge from Team-Hydra cm-11.0