Squashed update of kernel from 3.4.65 to 3.4.66
binder: use freezable blocking calls

Avoid waking up every thread sleeping in a binder call during
suspend and resume by calling a freezable blocking call.  Previous
patches modified the freezer to avoid sending wakeups to threads
that are blocked in freezable blocking calls.

This call was selected to be converted to a freezable call because
it doesn't hold any locks or release any resources when interrupted
that might be needed by another freezing task or a kernel driver
during suspend, and is a common site where idle userspace tasks are
blocked.

Change-Id: Ic4458ae90447f6caa895cc62f08e515caa7790ba
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
epoll: use freezable blocking call

Avoid waking up every thread sleeping in an epoll_wait call during
suspend and resume by calling a freezable blocking call.  Previous
patches modified the freezer to avoid sending wakeups to threads
that are blocked in freezable blocking calls.

This call was selected to be converted to a freezable call because
it doesn't hold any locks or release any resources when interrupted
that might be needed by another freezing task or a kernel driver
during suspend, and is a common site where idle userspace tasks are
blocked.

Change-Id: I848d08d28c89302fd42bbbdfa76489a474ab27bf
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
select: use freezable blocking call

Avoid waking up every thread sleeping in a select call during
suspend and resume by calling a freezable blocking call.  Previous
patches modified the freezer to avoid sending wakeups to threads
that are blocked in freezable blocking calls.

This call was selected to be converted to a freezable call because
it doesn't hold any locks or release any resources when interrupted
that might be needed by another freezing task or a kernel driver
during suspend, and is a common site where idle userspace tasks are
blocked.

Change-Id: I0d7565ec0b6bc5d44cb55f958589c56e6bd16348
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
af_unix: use freezable blocking calls in read

Avoid waking up every thread sleeping in read call on an AF_UNIX
socket during suspend and resume by calling a freezable blocking
call.  Previous patches modified the freezer to avoid sending
wakeups to threads that are blocked in freezable blocking calls.

This call was selected to be converted to a freezable call because
it doesn't hold any locks or release any resources when interrupted
that might be needed by another freezing task or a kernel driver
during suspend, and is a common site where idle userspace tasks are
blocked.

Change-Id: I788246a76780ea892659526e70be018b18f646c4
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Colin Cross <ccross@android.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
mogami: Increase pmem for 5MP phones

Needed for camera

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
mddi/hvga: Remove unused code & minor cleanup

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
mddi/hvga: Initial cleanup of non-sony panels

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
mddi/hvga: Move platform data in panels

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
mddi/hvga: sony: Initial cleanup

Remove some unused stuff.
Initial work to bring the panel inline with the others

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
mddi/hvga: Add DBC sysfs controls

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
mddi/hvga: Cleanup sony panel & fix panel resolutions

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
mogami: Update vreg_helper to use regulator api

Use a single function for both enable/disable
Use vreg_helper for clearpad & apds9702 to save duplicate code

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
mddi/hvga: Remove DBC mode control

It's only supported by 2 panels and it needs more userspace stuff
to make it configurable. Leave it in video mode by default like sony did

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
mddi/hvga: Remove more unused code

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
novatek: Cleanup ifdefs & unused code

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
mogami: Fix clearpad build

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>
Merge pull request #2 from LegacyXperia/cm-10.2

Latest changes from LX